Copy link to clipboard
Copied
In the form I am creating, I have a Check Box. If the Check Box is selected, I'd like to have another Text Box populate with a Calculation.
I currently have the calculation work but I only want it displayed when the Check Box is marked.
You can use something like this:
if (this.getField("CheckBox1").valueAsString=="Off") event.value = "";
else {
// place calculation code here
}
Edit: Typo fixed in code
Copy link to clipboard
Copied
You can use something like this:
if (this.getField("CheckBox1").valueAsString=="Off") event.value = "";
else {
// place calculation code here
}
Edit: Typo fixed in code
Copy link to clipboard
Copied
Thank you.