Avatar

Level 5

Radzmar,

I have messed with your code above to try and make the script validate a field with:

Last, First MI

as of yet I haven't been able to figure out what is missing. I have tried changing the script to:

(/\D{2}?\s*,+\s\D{2}?/g+\s\D{1}?/g)

to account for the Middle Intial. A name having hyphens or any other digits isn't a problem. I would just like to check for the format [a-zA-Z0-9adgk][,]\s[a-zA-Z0-9adgk]\s[a-zA-Z0-9adgk] meaning

[anything], [anything] [anything]. None of these work however.

Any direction you could point me to get closer to the correct script would be appreciated. Thank you.

I am also getting an error in the console regardless of what is entered.

$.rawValue is null

7:XFA:form1[0]:#subform[0]:TextField1[0]:exit

TypeError: $.rawValue is null

7:XFA:form1[0]:#subform[0]:TextField1[0]:exit

https://workspaces.acrobat.com/?d=391oP-DspRpbACpKdvL1Yw