How to check for null values in Adobe forms

Oct 28, 2016 at 10:01 AM


avatar image


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"
this.presence = "visible"
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Henninger
Oct 28, 2016 at 10:03 AM

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"


BTW: You are mixing up the scriptlanguages.

"this." is always Javascript. "

"$." = Formcalc

You have to choose one:-)

10 |10000 characters needed characters left characters exceeded
Skip to Content