Expand my Community achievements bar.

SOLVED

Presence of a Text Box

Avatar

Former Community Member

I have a quick question for you.  I have two text boxes on a form I created in LiveCycle Designer that I want to be visible on the screen, but not when the form is printed.  I have the presence of these text boxes set to "Visible (Screen Only)", but they still print out.  How can I keep these text boxes from printing?

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi,

Add this script on the pre-print event of the text box that should not be visible on printed form.

this.presence = "invisible" ;

and add this script on the post-print event of the same text box to make it visible after print

this.presence = "visible";

Regards--

Chalukya

View solution in original post

4 Replies

Avatar

Correct answer by
Former Community Member

Hi,

Add this script on the pre-print event of the text box that should not be visible on printed form.

this.presence = "invisible" ;

and add this script on the post-print event of the same text box to make it visible after print

this.presence = "visible";

Regards--

Chalukya

Avatar

Former Community Member

The Visible screen only shoudl work for you assuming that you have chosen the proper target version for the form. That was added in the version 8 timeframe. Under the File/Form Properties/Defaults make sure the target version is et for version 9 and validate that it works. Then back it up a level and try again. until it stops working. I do not remember if it was 8.1 or 8.0 where that feature was introduced.

Paul

Avatar

Former Community Member

That did it. Thank you very much for your assistance.

Incidentally, my target version is 7. Some of our customers do not have the most recent version of Adobe (and apparently feel annoyed, when we tell them where to download it), so I needed to choose an older version as the target version.

Thank you again for your help.

Avatar

Former Community Member

In that case you can leave it at version 7 and use the preprint and post print events like the other post suggested. Not as elegant but effective none the less.

Paul

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----