Expand my Community achievements bar.

Assistance with javascript

Avatar

Former Community Member

736118_pastedImage_0.png

Using java script in Adobe Livecycle Designer ES how can I refer to a specific field (Picture) in a subform which has been repeated a few time to allow me to make that specific occurrence of that field visible or invisble when required when a user clicks on a button for that purpose. .

Any suggestions on how to do this

1 Reply

Avatar

Level 7

On the click event of the button you would put:

Picture.presence = "hidden"

that should be all you need. If the picture is wrapped in a subform and you want to hide the subform they you would change the reference from Picture or whatever your field is. Based on your hierarchy it looks like it would be:

Details.presence = "hidden"