cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Fields in Adobe Form

sandeep_reddy24
Participant
0 Kudos

Hi,

I have some fields in my form that i want to hide. I added in some javascript into the button-click event. When previewing in the Adobe LiveCycle Designer, the fields are hidden successfully,but when i press F8 button the fields are not able to hide.

My JavaScript is:

if(this.rawValue == null)

{

this.presence = "hidden";

}

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

you can use as below,

below Scripting can be used to ahcive this.

1. FormCalc Scripting.

2. JavaScript.

Combination of both is also allowed in same form.

Example:


if( hasValue($) ) then
StaticText1.presence eq u2018visibleu2019
Else
StaticText1.presence eq u2018hiddenu2019
Endif.

Thanks,

Chandra

sandeep_reddy24
Participant
0 Kudos

Hii chandra,

I have to use JavaCode. can u please give me one example (like i have to hide kunnr field from kna1).

Thanks,

Sandeep