07-26-2022 8:37 AM
Hi,
I have checked answers related to this question, but I did not find the appropriate answer. So, can you please help me in solving the below issue.
I have created a text field(COUNTRY) in subform1 which holds the country value. In the subform2 there is a table(it_item) which contains six text fields(US_COMP , OT_COMP , US_UNITPR , OT_UNITPR , US_TOTCOMM , OT_TOTCOMM).
Now, the requirement is these six text fields should be displayed only when the country field is "US" otherwise it has to be hidden.
Thanks in advance.
07-26-2022 12:02 PM
This should be able to do using JavaScript.
Select element you want to hide and open Scripts - event "initialize" - and select language to JavaScript (default is often FormCalc).
Script would look something like this:
var CountryCode = your country value;
if (CountryCode == "US") {
this.presence = "visible";
}
else {
this.presence = "hidden";
}