close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Server Side Validation Show If not working

Thread began 10/26/2011 8:40 am by Daryl | Last modified 10/26/2011 1:13 pm by Daryl | 1335 views | 4 replies |

DarylBeta Tester

Server Side Validation Show If not working

I have a form that sends an email using UE which works!

I want to make all fields 'required' or 'email' with an error message at the top of the form that relates to each area. I also have a Show If section if all the validations pass to say the form was sent.

I have added this validation however when the form is blank, no email is sent, but no error messages are displayed.

When the form is completed correctly, the email is sent which would suggest the validation is working! However, no success message is displayed.

The last thing that I would like is that the form fields that were validated as correct would remain populated with the data entered into the form.

I have attached the page for you to see.

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

Jason ByrnesWebAssist

the validation show if behaviors are nested.

The failure show if behaviors are nested inside the success show if behavior.

the success error message is nested inside a failure behavior.

Remove all of the validation Show if behaviors from the page and re apply them.

When applying the validation show if behavior, make sure to select only the text that should displayed for that one show if.

to retain validated information, set the initial value of each form element to use the corresponding binding from the validated entries binding group.

Sign in to reply to this post

DarylBeta Tester

Oooops - Thanks!

I have sorted out the nesting issue as suggested and have managed to link the form fields as suggested all of which works well!

I had hoped that a success validation with all fields selected would show a thank you message after the email had been sent, however the page loads with no success message.

Should a message be displayed or am I going about this the wrong way?

Sign in to reply to this post

Jason ByrnesWebAssist

in universal email, set the go to page to go to the contact.php but passing in a query string variable:

$GoToPage = "contact.php?emailed=true";



then use an if statement to show the success message:

php:
<?php if(isset($_GET['emailed']) && $_GET['emailed'] == "true") { ?>

the email was sent
<?php ?>
Sign in to reply to this post

DarylBeta Tester

Thank you Jason!!

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