ActionsDev
Roy Gardiner
1 Jun 2010, 11:25 pm
[Pro] Validate JavaScript Error
I’m pretty much a newbie trying to site building, so I appreciate any help that you may be able to provide.
I’m in the process of building my web store and have run into a couple of E-Form Action problems. The E-Form is inserted into a table along with a Menu List (with E-Product Variant Action applied) and a custom button graphic image (with E-Buy Button Action applied).
I have run into the following problems:
The custom button won’t work, however, if I delete it from the E-Form, the default Buy Now Button works fine.
I have also applied the Validate Action to the Menu List (E-Product Variant) along with the Validate Extras Action to the page. When I try to preview or publish, I get an JavaScript Error message indicating that the Validate Action “form has no properties”. The following is a portion of the code sequence provided:
form=tag.fwFindEnclosing(“form”); //give the form a name if it doesn’t have one if(!form.name)
the “if(!form.name)” is highlighted.
I have rechecked numerous times and I’m pretty sure that I have set things up properly and have deleted the E-Form and Actions in a variety of sequences including rebuilding from scratch with same results.
Again, any assistance would be greatly appreciated.
Thanks.
Roy
DeltaDave
2 Jun 2010, 2:29 pmI dont think that you can use the validate actions when using the E shop actions - that is really meant for using the form for normal form submission purposes.
And the E-buy form action - as you have discovered - generates it own Buy button so you would need to hand code that (I think) if you want to use a Custom button.
David
Glasgow, Scotland
iMac 27 Snow and Pro 5.6.3
