I need a script that will automatically change the format in a text field if the user enters it in wrong. I can't use the default Adobe format option because I had to put in a custom format script for something else in this field. If the user enters, for example, just 125 I need it to add a decimal and change it to 125.00. I know this is probably pretty simple to do but I'm fairly new to scripting and couldn't figure it out. Thanks for your help!
For what you described, you can use the util.printf method:
event.value = util.printf("%.2f", event.value);
That's exactly what I needed, thanks so much!