close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I retain form content on a failed validation

Thread began 9/19/2011 5:37 am by mrs | Last modified 4/10/2012 10:08 am by Jason Byrnes | 1035 views | 3 replies |

mrs

How do I retain form content on a failed validation

I have tried to do the 'Validation Show If' on my form page, and it works OK, but when I test it with an incorrect code to make sure it does show the failed validation message, all of the other form content disappears because the page is basically refreshed.

So, if I do use the Validation Show If on the form page, how do I get the form to retain the user entered content? Currently, I have a simple form, but if I use this on a complex form, I can see users getting fed up and moving off to another site, which is not good for business!

At the moment, I have removed the Validation and I redirect to a simple HTML page where I state the captcha code was entered incorrectly and they need to click here to do a history back -1. By doing this, I am able to retain the user entered content, but it's not particularly user friendly.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Use the validated entries collection to set the initial value of the form element:

select the form element, in the property inspector, click the lightning bolt next to initial value, expand the validated entries group and select the corresponding binding.

Sign in to reply to this post

charles164095

validated entries collection

Please explain "validated entries collection" if you would please. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

Open the bindings panel. On a page that has server validation applied to it, there will be a binding collection named Validated Entries. This collection will contain a binding for each form element, when validation fails, the validated entries bindings will save the data for each form element that passed validation to be used to repopulate the form.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...