Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Help with making text visible if button clicked

Avatar

Former Community Member

Hi

I am new to livecycle designer and have very, very limited experience with scripts.

This is what I want to do:

I have inserted a button into a form. When the button is clicked I want to make a read-only text box containing some helpful information visible.

I know about the script editor etc and my form is saved as a dynamic form - I just don't know what script to write!  Previously I have managed to make a text box visible when a check box is ticked but so far I haven't managed to work out how to make text appear when a button is clicked - it's the syntax I struggle with. Any help appreciated!

Many thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 6

This is FormCalc on the Click of the button or checkbox:

if ($.rawValue==1)then

TextField1.presence="visible"

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

This is FormCalc on the Click of the button or checkbox:

if ($.rawValue==1)then

TextField1.presence="visible"

Avatar

Former Community Member

Hi Paul

Thank you for taking the time to respond - I get it now!