cancel
Showing results for 
Search instead for 
Did you mean: 

Try to hide a row in Adobe Forms

Former Member
0 Kudos

Hi,

I'm trying to hide  a row in adobe forms if the data is empty but is not working..

Any ideas ?

Thanks in advance..

Thomas..

like this.. (see Attachments)

if ( $record.HEADER.TOTAL_KM ==  ) then $.presence = "hidden" endif..




Accepted Solutions (1)

Accepted Solutions (1)

former_member531036
Participant

Hi Thomas,

I just tried this on one of our forms (using your original scripting - without isNull). I selected a field and changed it to 0 in the XML file that I use for Preview PDF. I then added the following scripting in the initialize event (as FormCalc):

Before scripting:

After scripting:

Sometimes scripting doesn't recognize the field as numeric. Try putting a '+' sign in front of $record and see if that helps.

Thanks!

Julie

Former Member
0 Kudos

Hi Julie,

is works..

Thanks..

BR,

Thomas

Answers (1)

Answers (1)

former_member531036
Participant
0 Kudos

Hi Thomas,

Try:

if ($record.HEADER.TOTAL_KM.isNull) then $presence = "hidden" endif

Julie

Former Member
0 Kudos

Hi Julie,

i will try.. Thanks..

BR,

Thomas

former_member531036
Participant
0 Kudos

Hi Thomas,

Did this fix your issue?

Thanks!

Julie

Former Member
0 Kudos

Hi Julie,

not yet.. The Problem is that the header Text will not be hide .. Is there a way to the the header of the tow if the row is empty ?

Thanks