Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Need script to replace "J/" with "*" in PDF form.

Avatar

Level 1

This is an error I'm getting when I scan specific barcodes into a form field. Everything works fine unless there is a "*" (asterisk) in the barcode. If there is one, it gets replaced with "J/" in the form field. Is there a setting I can change in LiveCycle Designer ES2 or Acrobat Pro X to let the field accept "*", or, if not, what is a basic string replace script that would automatically fix this? I am not allowed to modify the scanner configuration, only the form. I thank you for any ideas.

1 Reply

Avatar

Level 10

Hi,

You can use the replace() method from JavaScript.

This can look like this:

this.rawValue = this.rawValue.replace("J/", "*");