cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent - Making a Textfield visible on clicking on a check box

Former Member
0 Kudos

hi,

In Adobe Form I have placed a checkbox and a textfield. When the check box is clicked the textfield should be made visible.Initially the textfield should be invisible.

Can anyone provide the script to be written for achiving the above task.

Also let me know the event whr the script has to be included.

Thanx,

Sivagami

Accepted Solutions (0)

Answers (4)

Answers (4)

mona_mehta
Participant
0 Kudos

Hi Sivagami,

Can you please tell me which SAP WAS are you using? I have a similar code in my interactive form, and am deploying it in SAP WAS 6.4 SP19, but the visibility change does not work in the application. However it works inside the form designer 7.1

I am not sure if SAP WAS 6.4 will actually support this....

Thanks and Regards,

Mona

Former Member
0 Kudos

hi,

I have solved the issue by using the following code...

if ( Checkbox.rawValue == true )

Textbox.presence = "visible";

else

Textbox.presence = "invisible";

Thanx,

Sivagami.R

Former Member
0 Kudos

Yep, that's essentially it.

Off of the checkbox's 'rawvalue' (0 or 1) set the texfield's 'presence' (visible or hidden).

Former Member
0 Kudos

Hi,

Check this -->

Please reward points if helpful.

Regards,

Amit