cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Static Text

Former Member
0 Kudos

Hi all,

I want to hide a static text if a data is initial :

For exemple the the static texte is Name and the DATA is X

Name : X

If X is null -


> the static texte Name : will not be printed in the finale Pdf.

Is theire any possiblity to achieve this ?

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jcrios,

Is that the field value comes from backend by default or is it a user entered.

Put the static text into a subform.


If default:
       on formready of this subform heve something like below
       if(form1.subform1.textfield1.rawvalue == null)
                      This.presence = "hidden";

If user entered:
   on exit of the text field have some thing as below.
   if (this.rawValue == null)
   form1.form2.<u r subform of the static text>.presence = "hidden";

Let me know if you need any more info.

Regards,

Sai

Answers (2)

Answers (2)

OttoGold
Active Contributor
0 Kudos

I believe you cannot script on static text. So if that would not work for you, script this thing on the parent of the static text.

Otto

Former Member
0 Kudos

Hi ,

You can use javascript for that.

Put that statictext in subform. and put a condition on that form .Google out to find the syntax for that

thnks,,,