Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Memo Field Question

Avatar

Level 3

Hi guys,

I have a form with a text field that I would like to be displayed (and printed) only if the user wishes to.

Thus I have a button which if pressed, makes the text field visible.

However, clicking the button has no consequences on the text field, which remains invisible.

Any thoughts?  The form is attached.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Saving the form as dynamic gets the button working (attached).

Also I am not sure you need the "TextField7.relevant = "+print";" line because the textfield is made visible by the first line of script and will automatically print.

If you want the field to print even if it is invisible, you could put the relevant script in the initialize event.

Good luck,

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Saving the form as dynamic gets the button working (attached).

Also I am not sure you need the "TextField7.relevant = "+print";" line because the textfield is made visible by the first line of script and will automatically print.

If you want the field to print even if it is invisible, you could put the relevant script in the initialize event.

Good luck,

Niall