Copy link to clipboard
Copied
Believe or not but I couldn't find the answer. I have two fields. Field1 and Field2. Field1 calculates. If and when Field1 is populated then I would like to show and populate Field2 with a phrase, not the total from Field1. Then if Field1 is not populated then to hide and reset Field2. Can someone help me solve this? Thank you all.
As the custom calculation script of Field2 enter this:
if (this.getField("Field1").valueAsString=="") {
event.value = "";
event.target.display = display.hidden;
} else {
event.value = "Some text";
event.target.display = display.visible;
}
Copy link to clipboard
Copied
As the custom calculation script of Field2 enter this:
if (this.getField("Field1").valueAsString=="") {
event.value = "";
event.target.display = display.hidden;
} else {
event.value = "Some text";
event.target.display = display.visible;
}
Copy link to clipboard
Copied
That was really a fast response. And, the correct answer. Once again thank you Gilad.