Copy link to clipboard
Copied
I am using this script to force the tab to go to a specific field if the choice matches. However this also happens in several other fields in the document without this script. Can you help me to fix it?
if (this.getField("Details of Loan Drop").value=="Combination of 1ST & 2nd Mortgage (Explain Here)"){
this.getField("Texto25").setFocus();}
if (this.getField("Details of Loan Drop").value=="Combination of 1ST & 2nd & 3rd (Explain Here)"){
this.getField("Texto25").setFocus();}
Copy link to clipboard
Copied
Where did you add the script?
Copy link to clipboard
Copied
I added in the custom calculation script of the field
Copy link to clipboard
Copied
What field?
Copy link to clipboard
Copied
In the field were there is a combo box to choose. And if the choice is one of the two: "Combination of 1ST & 2nd Mortgage (Explain Here)" or "Combination of 1ST & 2nd & 3rd (Explain Here)"
I need the tab to go directly to the field "Texto25"
Copy link to clipboard
Copied
At this as action for the trigger "Mouse Up".
Copy link to clipboard
Copied
Now, once the selection is chosen, it is not possible to change... Should I have something for mouse down?
Copy link to clipboard
Copied
Try a other trigger.
Copy link to clipboard
Copied
I did try them all, but they all do the same, once the selection is chosen, it is not possible to change
Copy link to clipboard
Copied
Remove any existing script and try the following as the custom Validation script for the dropdown:
// Custom Validate script for dropdown
if (event.value == "Combination of 1ST & 2nd Mortgage (Explain Here)" || event.value == "Combination of 1ST & 2nd & 3rd (Explain Here)") {
getField("Texto25").setFocus();
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now