close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

validating fields

Thread began 5/14/2012 1:09 pm by john70964 | Last modified 5/15/2012 7:44 am by john70964 | 2101 views | 8 replies |

john70964

validating fields

I have a form which collects detail and then emails the details to an address.

I would like to validate some fields and wonder what is the best way to do this.

At the moment after the form I have a thankyou page but I believe I read that the validations need to be carried out on a page after the action page.

Is there a tutorial on this. I looked for a video but could not find one.

I have attached a zip copy of the file

Many thanks

John

Attached Files
Gen2EMC_Cable_Glands_Metric.zip
Sign in to reply to this post

Jason ByrnesWebAssist

  I read that the validations need to be carried out on a page after the action page.  




No, this is not true.

the validation needs to happen on the forms action page.


your form is set to post to itself, so the validation needs to happen on the same page as the form.

open the server behaviors panel, and double click the Server Validation behavior to edit it and add additional validations.

select the validation type, click the lightning bolt next to Server Variable and select the form element to validate, then click the plus button to add it to the list.

repeat until you have set all of the validations and click OK.

Sign in to reply to this post

john70964

Thanks Jason
I did that but when I tried to submit I received this error
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

Any ideas what may be causing this?

Sign in to reply to this post

john70964

I changed this as per instructions but it seems to keep changing back to the original code.

in the webassist/form_validations/wavt_scripts_php.php file, change:
Code:
header("Location: ". $thePostURL);
to:
Code:
$thePostURL = str_replace("%23","#",$thePostURL);
header("Location: ". $thePostURL);

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that code will be reverted when you make a change and you will need to change it back.

Sign in to reply to this post

john70964

"yes, that code will be reverted when you make a change and you will need to change it back"
Thanks for letting me know, I will keep that well in mind.

Sign in to reply to this post

john70964

Thanks for all the help with validating.

I created an excercise page to get the feel of
Captcha
Validations
Validation Show if
I made good progress following the video at
watch?v=uVfJ686MLKs

When I tested the finished result I found it rather confusing.
Where the submit boxes which were filled in correctly, the error message disappeared but the text box was also empty and required re entering.

I attach an image to show more clearly.
Can the text entered correctly be retained?

Sign in to reply to this post

Jason ByrnesWebAssist

set the initial value of the text boxes to use the validated entries bindings.


Select the text box in design view. In the property inspector, click the lightning bolt icon next to initial value. In the bindings, expand the Validated Entries collection and select the corresponding binding.

Sign in to reply to this post

john70964

Excellent Jason,

Many thanks

John

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