This is about a textfield that is a combo of 7 parts. How do I set this textfiled up so that the first character is set to a "P." For example the end result should be something like P123456. The "P" is a fixed character. Thx
This is about a textfield that is a combo of 7 parts. How do I set this textfiled up so that the first character is set to a "P." For example the end result should be something like P123456. The "P" is a fixed character. Thx
Do you want the P to appear along with data that are calculated, user supplied, or something else?
I'm going out on a limb and assume you want one of two options. Option 1. a P along with user supplied data. If so, set up an Arbitrary Mask for the text field. In the Format tab of the Text Ffield Properties, slect Custom from the Select format category pull-down menu. Scroll the options and select Arbitrary Mask.
In the text box below the Arbitrary Mask selection, type P999999. The P is a fixed character. The 9's represent any numeric value a user types in the text field. Therefore when the user clicks in the field and types 123456 the result reads P123456.
Option 2. If you want the value calculated, choose None from the Select format category. In your JavaScript you might have a calculation like:
var f = this.getField("first field");
Var g = this.getField("secondField");
event.value = "P" + (f.value + g.value);
Hope this helps.
ted
The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.