Convert Reg Ex to Javascript for Adobe Form
Hello,
I have a text field that I want to limit to AlphaNumeric and must be 7 characters
I currently have this under custom validation string to trigger it to be a required field based off of another field.
this.getField("Rebate Admin Fee 1").required = event.value == " " ? false : true;
I need to also add the 7 character rule to this section. the regex I would use is ^[a-zA-Z0-9]{7}$
How can I make this into a Javascript? and add it to the validation above?
Thank you in advance!
