close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Retain entered information on Update form

Thread began 3/15/2010 4:43 pm by Andrew Read | Last modified 6/25/2017 8:54 pm by Ray Borduin | 794 views | 3 replies |

Andrew Read

Retain entered information on Update form


I am working on an update for with Server Side Validations.

I am interested to know whether or not it is possible to retain any changes that are made if the form submission fails validation?

To be clear:

If a field is changed - retain those changes and allow the user to correct them.

If a field is unchanged - use the values from the database.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

you could do this by creating a ternary expression to evaluate whether the RS data is the same as the value from the validated field collection.

The code for getting the validated field value will look similar to this:

<?php echo(ValidatedField("confirm","FirstName")) ?>

an example of the ternary expresion would look like:

<?php echo(((ValidatedField("confirm","FirstName") == $row_rsRecordset['FirstName'])?ValidatedField("confirm","FirstName"):$row_rsRecordset['FirstName']) ?>
Sign in to reply to this post


Struggling with this.

I have:value="<?php echo(ValidatedField("form1","Email")) ?>"

Where form1 is the form ID and form name and Email is the field ID and the field Name.

The values are wiped out if any of them are invalid.

Sign in to reply to this post

Ray BorduinWebAssist

Use the bindings panel to get the correct syntax. It should not be the form name "form1", it is usually the page name, but using the bindings panel is the fastest and safest way to ensure you have the correct syntax.

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





Ease of use


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...