Calculations in adobe acrobat pro dc11/28/2023 In the latter case, we set rc to false, and also display an error message. The member ‘rc’ (or return code) is used to communicate back if the validation was successful or not. This script also includes a check for an empty string, so that the user can wipe out a wrong string and start from scratch.Īs I mentioned before, information is passed to the validation function in the event object, and in the code we see that the member ‘value’ is used to communicate the current value of the field. If (event.value != "" & event.value != "AAAA" & event.value != "BBBB")Īpp.alert("The entered value needs to be either 'AAAA' or 'BBBB'!") To make things easier to copy&paste, here is the script again: event.rc = true
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |