I’ve created a few forms on pages before (using forms to go) but I have no idea how to create the function on this page http://anchorpointinteriors.com/downloads.asp where the form needs filling in before downloads can commence.
Try this. Make your form page, laid out just as you like, with the
(apparent) download items on the same page. But instead of linking
those download item icons to their respective files, use the Hyperlink
dialog to add this link:
javascript:alert('Please complete the form first!')
Then, make your form’s “success page” look identical to the form page,
except replace the form with a thanks message, and in each of the
links to the downloads, just add the actual link to the file.
That way, in order to get to the real links to the real files, they
have to successfully complete the form.
Walter
On Jun 2, 2011, at 5:01 AM, neil.west1 wrote:
Hi All
I’ve created a few forms on pages before (using forms to go) but I
have no idea how to create the function on this page http://anchorpointinteriors.com/downloads.asp
where the form needs filling in before downloads can commence.
You could make it an Ajax form, and use JavaScript to update the links
once the server has responded with a success result, but that’s a lot
of work for something so simple as this.
Walter
On Jun 2, 2011, at 9:37 AM, neil.west1 wrote:
Thanks Walt, without knowing how to do that on the same page, your
idea seems to fit the bill perfectly!
I’m trying to what you’ve said by selecting the graphic, bringing up the hyperlink dialogue and entering your text in the ‘extended’ section with ‘javascript’ as the name and ‘alert…’ as the value. Is this right? I have to enter a destination for the hyperlink or it won’t let me click okay, but when I click on the link, it takes me to the destination instead of flashing up the message.
No, just put the entire thing in the URL field in the Hyperlink
dialog. The other way to do this is with Extended, put onclick in the
Name field and alert(… in the Value field. But that’s more work,
plus then you have to also enter a hyperlink of some sort, either a #
or similar.
Walter
On Jun 2, 2011, at 9:56 AM, neil.west1 wrote:
I’m trying to what you’ve said by selecting the graphic, bringing up
the hyperlink dialogue and entering your text in the ‘extended’
section with ‘javascript’ as the name and ‘alert…’ as the value.
Is this right? I have to enter a destination for the hyperlink or it
won’t let me click okay, but when I click on the link, it takes me
to the destination instead of flashing up the message.