To start, we create a text field and bring up the properties dialog for the field.

validating address-57validating address-60

To learn more about the event object, take a look at JS.88.560– make sure to click on the button in the upper left corner to display the navigation pane if it’s not shown automatically. At this moment, I have a PDF with the tree fields, created by hand, and I copy and paste they at right page.

Then, I enter the value on the first field to change the rest.

Really useful if it does (even if it makes me a little stupid).

I just thought it changed a 12 digit long integer into the IP address format.

Actually, I use a arbitrary mask (999/9999) to check that the value is ok.

I wish to know if I can put this validation mask embebed in the field, needing not more Java Script running in the dark to work properly next time I must change values, right like now, with hand made fields.

In that case, the previous value of the field is restored, and the user has to enter the data again.

This is not always desired (for more complicated data, it will probably be much easier to take a look, correct that one typo and continue with the rest of the form), so my preference is actually to mark the field so that the user knows which field needs to be corrected, and have the validation script not report a validation error back to the field: Using this method has implications on the form submission process: The form no longer can verify that the data is correct, so the submission function needs to do another round of validation to see if any of the required fields are not correct (one way to do that is to test all relevant fields to see if the text color is using the error color, or we can use global variables to store the validation state).

I hope my problem is clearly exposed, but I’m not very sure, sorry.