Copy link to clipboard
Copied
I created a dropdown menu for [County Tax Rate]. I listed each county and added a customer Export Value according to each county.
I then created a separate box for [% Sales Tax]. In which I want the Export Value of the selected county to populate. From this box, I went to Properties -> Validate -> Run Custom Validation Script and input the following script I found in a google search, exactly as it appears:
event.value = this.getField("County Tax Rate").value;
When I preview the form, the script doesn't work. Is there another script I should use?
Copy link to clipboard
Copied
Use a validation script at the dropdown or a calculation script at the other field.
Copy link to clipboard
Copied
This script is a custom calculation script of the "% Sales Tax" field and is working fine, but you must check the "Commit selected value immediately" option of the dropdown field.
That sould work fine after that!
Please have a look on the attached pdf file.
Copy link to clipboard
Copied
Use a validation script at the dropdown or a calculation script at the other field.
Copy link to clipboard
Copied
This script is a custom calculation script of the "% Sales Tax" field and is working fine, but you must check the "Commit selected value immediately" option of the dropdown field.
That sould work fine after that!
Please have a look on the attached pdf file.
Copy link to clipboard
Copied
Thank you all for the suggestions - it was a combination of selecting "Commit Selected Value Immediately" and instead of using the "Validate" tab, I did "Custom Calculation" and it worked! 🙂

