Hide only the caption when field content is empty for a Adobe Print Form field | Community
Skip to main content
June 9, 2015
Solved

Hide only the caption when field content is empty for a Adobe Print Form field

  • June 9, 2015
  • 1 reply
  • 4394 views

Dear all,

We try to hide only the caption of a field if the field content is empty.

a) The following code will hide the entire raw (entire field including caption). What should we change to the code to only hide the caption?

-------------------------------------------------------

if(this.rawValue == null)

{

  this.presence ="hidden"

}

-------------------------------------------------------

b) Another option would be to use conditional formatting -> change caption text to white colored text,  if the field content is empty to make it invisible on the printout.

Is there any options in ALD available or which code should be used to realize one of the above options?

Thank you in advance!

Kind regards,

Roy

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

change the script to:

if(this.rawValue == null)

{

     xfa.resolveNode("this.caption.value.#text").value = "";

}

1 reply

Accepted solution
June 10, 2015

change the script to:

if(this.rawValue == null)

{

     xfa.resolveNode("this.caption.value.#text").value = "";

}