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

rating

Server Validation wiping form field data, despite having value set to ValidatedField and Recordset value?

Thread began 12/21/2018 8:27 am by Nathon Jones Web Design | Last modified 12/26/2018 2:54 pm by Ray Borduin | 29 views | 2 replies |

Nathon Jones Web Design

Server Validation wiping form field data, despite having value set to ValidatedField and Recordset value?

http://www.sportsmedicalcertificates.com/health-screening-form.php?tab1=1

If you complete Step 1 in the above form, it saves to database as an INSERT. Every other Step, 2-5, is then an UPDATE.
I have different Server Validations for each Step.

If you complete Step 1 you are taken to Step 2 by default. However, if at that stage you decide to complete Step 4 and the validation at Step 4 fails, it is wiping all of the values from all of the other form fields. Try selecting "Yes" for one of the questions in Step 4 but then not entering any information in the textarea below. ...then, when the validation fails, click on the Step 1 tab.

Yet, all of the fields in Step 1 have the following value (this is the FirstName field):

value="<?php echo(isset($_GET['v'])?ValidatedField("healthscreeningform_984","FirstName"):$rsEDITFORM->getColumnVal("SMCformFIRST")) ?>"



Why is this happening?
FTP details provided below.
Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

FTP...

Sign in to reply to this post

Ray BorduinWebAssist

That is because you are using the same URL parameter for each validation check. The issue is that only one validation failed but all of the forms try to populate from the failed validation fields, but they aren't all saved since they are separate validations.

The best solution is probably to use a different url parameter for the failed redirect for each tab and then you can check for it when displaying the form like:

php:
value="<?php echo(isset($_GET['v1'])?ValidatedField("healthscreeningform_984","FirstName"):$rsEDITFORM->getColumnVal("SMCformFIRST")) ?>"



and

php:
value="<?php echo(isset($_GET['v2'])?ValidatedField("healthscreeningform_984","LastName"):$rsEDITFORM->getColumnVal("SMCformLAST")) ?>"
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...