on 10-28-2016 11:01 AM
Hi,
I am trying to display/hide a subform based on whether the user enters "Terms and Conditions" in ME22N under the header texts section.
I am attaching the code below, please help me out;
data.TOD.tod_sub::ready:form - (FormCalc, client)
var todd = xfa.resolveNode("data.TOD.tod_sub.#subform.TextField28")
if ( (xfa.resolveNode("data.TOD.tod_sub.#subform.TextField28").rawValue == " " ) || ( xfa.resolveNode("data.TOD.tod_sub.#subform.TextField28").rawValue == null ))
this.presence = "hidden"
else
this.presence = "visible"
endif.
Hi Anuj,
it's much easier to add a condition at the contex and pass a variable to the form. Inside the form you can check if the variable is filled or even it's "null"
~Florian
BTW: You are mixing up the scriptlanguages.
"this." is always Javascript. "
"$." = Formcalc
You have to choose one:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.