These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Script for adding astericks?

markojett
Registered: Dec 21 2009
Posts: 22
Answered

Very new to Java, and I have a field on a form that once a user enters information, I need it to add an asterick before and after the information (for 3 of 9 barcode). I thought this would be fairly simple, but I can't get it to work. Any help would be greatly appreciated - Thanks.

My Product Information:
Acrobat Pro 8.0, Windows
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
In the Format tab, choose Custom and enter this as the Custom Format script:
if (event.value!="") event.value = "*"+event.value+"*";

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

markojett
Registered: Dec 21 2009
Posts: 22
Perfect. Thanks so much...I'm gonna check out your site now for other cool scripts. You rock.