I've just spent the last two days putting together a complex form and it is almost perfect. I have three outstanding issues:
1) Skip fields - I want to set it up so that if the user clicks the "No_6" checkbox the tabbing function jumps multiple fields to the "Total Annual Gross CommissionsRow5" field. How do I do this?
2) Equation? - I have the user input a name into the "ProducerName1" field. Later in the form what was input into the "ProducerName1" field needs to appear in another field so that the user doesn't have to reinput it. I know that I can name the second field the same as the first but that doesn't allow me to have different properties. The user needs to be able to input the name into the "ProducerName1" field but the second field needs to be read only.
3) Tools > Advanced Editing > Touch Up tools - I used this to delete some text. Unfortunately that text had some word underlined and the underlines will not go away. I tried creating Text Boxes over them which made the lines disappear but then those text boxes became tab stops. How do I get rid of the underlines or how do a stop text boxes from becoming tab stops?
Your help is greatly appreciated.
// Set the focus to this text field if selected
if (event.target.value !== "Off") {
getField("Total Annual Gross ComissionsRow5").setFocus();
}
2. You can either set the value of the second field in the first field's Validate event or in the second field's Calculate event.
// Validate script for ProducerName1 field: set the other field's value
getField("ProducerName2").value = event.value;
// Calculate script for ProducerName2 field: set field value to same as other
event.value = getField("ProducerName1").valueAsString;
3. You should not edit the underlying PDF in Acrobat. Instead, edit the source document, create a new PDF, and with your form opened in Acrobat select "Document > Replace Pages" to replace the old pages with the new. All of your form fields, code, links, bookmarks, etc. will be retained.