Expand my Community achievements bar.

Verifying a field by having the user enter data twice

Avatar

Level 3

I'm trying to set a form that has a checking account number. I need the user to enter the account number twice. The second account number must match the first one. How would I do this in livecycle?

2 Replies

Avatar

Level 7

You can fail the validation on one or both of the fields is the user's input does not match. For example, override the second account number field's validate event and enter something like this


if(!firstaccountNumber.isNull && !this.isNull && firstaccountNumber.rawValue != this.rawValue){


false;


}


This will cause the second field to fail its validations if both fields are filled in and the contents do not match.

Avatar

Level 3

This worked! Thanks so much! I just thought that it would be best to prevent the field to allow pasted data. Is there a way to do this?