PDA

View Full Version : Validation disappears


bjgarner241692
09-20-2010, 07:08 AM
I run into this a lot.
You Add validation to a page and save it.
You go back to the Validation Behaviour to add or edit something and as you step through the tool your validations are not there.
Restart the tool and they are there. Normally just a pain but not a big deal.

This time, it did not come back. I had to recreate all of my validations in order to add one. Now, I need to add another and I have the same problem. The tool will not pick up the validations on this page. It's as if I have not added any.

I have tried to manually add this rule:
WAValidateRQ(document.storage.paying,'- Please choose your payment type',document.storage.paying,0,true,'select');

The page loads and posts without error, but it entirely ignores this rule.

Page is attached.

2 problems: Why can I not see my rules in the tool?
Why does this manually added rule not work?

Jason Byrnes
09-20-2010, 09:08 AM
Are you loading the client validation wizard?

When I load the wizard, I can see all of the rules applied to this page.

Perhaps try deleting the cache file from the users configuration folder:
http://assets.webassist.com/technotes/common_installation_issues.pdf

there is another way to see the rules that are applied to the form, use the behaviors panel

in code view, select the form element, then go to Window -> Behaviors. this will show all of the behaviors applied to the form element, you can add validation by clicking the plus button and selecting WA Validation Toolkit -> Apply Client validations.


the problem wit hthe rule you added is that the list does not contain a blank value.

change:

<select name="paying" id="paying">
<option>Choose</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="Cheque">Cheque</option>
<option value="Cash">Cash</option>
</select>


to:

<select name="paying" id="paying">
<option value="">Choose</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="Cheque">Cheque</option>
<option value="Cash">Cash</option>
</select>