How do I make a subform dynamic so that a textfield which is empty will be considered non-existing.

Avatar

Avatar
Validate 1
Level 1
Bookashade
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Bookashade
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Bookashade
Level 1

26-11-2015

Hello,

I have the following subform:

qdzdwdd.PNG

What I want to accomplish is that, when P2 and/or P3 is empty, that the space between "nrEntrepriseClient" (Ondernemingsnummer) and the text block at the bottom will be gone in PDF view. There are conditions bound to P2 and P3, so when these are not met, the field will not appear.

Right now, my PDF view is the following:

qdazeg132.PNG

It's that whitespace between "Ondernemingsnummer" and the text block that I want gone.

The subform is in Flowed and Western text, putting it in Top to Bottom did not work.

Kind regards,

Jens

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

26-11-2015

Maybe you can help hiding objects:

data.#subform[0].#subform[2].P2::ready:form - (FormCalc, client)

if ($.isNull) then

    $.presence = “hidden”

endif

The same can be done for the P2 field.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
Bookashade
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Bookashade
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Bookashade
Level 1

26-11-2015

I used something similar (by building it in the action builder) but it works !

It's something like this:

((this.resolveNode("$").rawValue == null || this.resolveNode("$").rawValue == "")) {

          this.resolvenode("$").presence = "hidden";

}


Thanks for pointing me in the right direction!