Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Bookashade
Level 2
Level 2

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

1 Accepted Solution
Correct answer by
Anonymous
Not applicable

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.

View solution in original post

2 Replies
Correct answer by
Anonymous
Not applicable

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.

View solution in original post

Bookashade
Level 2
Level 2

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!