I know that Acrobat 10.0 can do calculations, but can a form be designed so that when one text field has a selection, another text field will populate based on the information in the first field?
Thanks George.
If a checkbox is selected, how do you populate another field with info from the checkbox? Lets say that you have four checkboxes for the following:
Example:
Please select all skills that apply:
MS Word MS Excel HTML Editing
(How would you populate each one of these?)
You said, given the right circumstances, you can do ; in which program ?
You also said you were proficient at MS Publisher MS Excel HTML
Can someone tell me how I can do this in Adobe Acrobat 10.0?
To set the value of a field in the Mouse Up event of a check box, do something like this:
// Set the value of a text field to the export value of this check box if selected
var val = event.target.value;
var f = getField("Text1");
if (val !== "Off") {
f.value = val;
} else {
f.value = "";
}
This code will work with a radio button group, check box, combo box (dropdown), and listbox if the export value of the check box match the button/export value of the other field, but the last line should be changed to:
f.value = "Off";
for radio buttons and check boxes, and the default value for combo boxes and listboxes.
You want a lot of coding and have not provided enough details.
We need field names, values, and the logic on how to apply them.
You can create the various form fields in Acorbat or LiveCycle Designer and assignig the value to be exported when an option is selected or a check box/radio button is sellected.
Manipulating the choices in dorp down list requires more advanved coding than acessing a simple value.
Ok, really sorry to bug you. i looked at your post: http://forums.adobe.com/message/3496310#3496310 to try and resolve the scenario above (And if I want conditional selections such as:
If MS Word checkbox and HTML checkbox are selected, then populate text1 field, otherwise, leave blank.
How does that modify the code?)
And I am not able to make it work. Here is the most real life example I need to solve:
New User | Change User Account | Disable OGSYS | Disable User Account |
Employee Contractor |
Company: MM Jasper GGGG Other |
If you select New User, Change User Account, Disable OGSYS, and Disable User Account cannot be selected, but;
Employee is selected and Contractor cannot be selected, then;
MM is selected
Please help one more time. Thanks.
What I am saying is, If New User is selected, then the Employee on the second row should auto select, and Company: MM should auto select. If this is true, then the user changes their mind and selects another item on the top row, Nothing on the next two rows should auto select. I am having trouble coming up with this.
I think I have the piece to select variables from different rows, but how do I say to "unselect previous selections" or "else don't select anything"? Maybe it is an "else" statement, maybe it is an "if then?"
Here is what I have for the first part if New User is selected
/ Set the value of a text field to the export value of this check box if selected
var val = event.target.value;
var f1 = getField("Employee");
var f2 = getField("CompanyMM");
if (val !== "Off") {
f1.value = val;
f2.value = val;
} else {
f1.value = "";
f2.value = "";
}
North America
Europe, Middle East and Africa
Asia Pacific