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

Validations Pass message not showing

Thread began 5/19/2009 6:19 pm by elove341397 | Last modified 8/24/2010 11:03 am by Ray Borduin | 2072 views | 5 replies |

elove341397

Validations Pass message not showing

All of my validations work except the message that is suppose to appear when all of my validations pass. After the form is submitted successfully I want a message to appear that says 'Thank you, your information was sent.'

This doesn't work. I first selected if ANY validations passed. After this didn't work, I individually selected all the required fields and it still didn't work.

Any suggestions?

Sign in to reply to this post

Ray BorduinWebAssist

It won't work. Do you have securityAssist? You could add a rule pretty easily.

Validation toolkit can't be used to show any messages if the form submits successfully.

Instead you should add a url parameter to a redirect after a successful form submit. Then use that url parameter to show the success message. If you aren't using a redirect you can use :

<?php if (isset($_POST)) { ?>

around the error message. Since the only way a post would go through is after a successful validation. SecurityAssist comes with a show conditional region you can use to create the if statement for you, so you wouldn't have to write the code, that is why I asked.

Sign in to reply to this post

elove341397

Yes, I have security assist. I usually use the url parameter/if statement when I manually code validations. I just thought the purpose of the 'validations pass' section was to show messages when the validations were successful.

How do I use security assist create the if statement?

Sign in to reply to this post

Ray BorduinWebAssist

Highlight the message and use the SecurityAssist->Show Region server behavior instead of the validation toolkit show if server behavior.

Then click on the rules manager and add a new rule.

Give it a Name: Validation Success
add one condition: Allow
value: <?php echo ((isset($_POST))?"1":""); ?>
Criteria: <>
Compare To:

leave compare to blank. This is for if you don't use a redirect on the page. If you do use a redirect, then add a parameter to the redirect like: pagename.php?success=true

and for the value of the rule use: <?php echo ((isset($_GET['success']))?"1":""); ?>
everything else would be the same.

Then click ok to get back to the original interface and you will be able to use that condition to show things on the page.

Sign in to reply to this post

dan361748

I wonder if anyone has had success with this.

I am also trying to figure out how to use Security Assist rules manager and Show If to pass validation on successful form submit.

I have created my rule value: <?php echo ((isset($_POST))?"1":""); ?> and set the Criteria to <>

I then applied this validation rule to my region as a Show Region

However it looks like the validation is always in a state of 'Pass'. My region appears even before the form is submitted.

Any assistance or clarification would be appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

Can you attach a copy of the page in question? It is hard to debug why something doesn't work from your description of the problem alone.

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