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

Enable text field border only when content is entered

Avatar

Level 1

Hello,

Can anyone point me to a method to achieve the following:

Using LiveCycle ES2, I want to set certain text fields to have no border as a default.

When the user enters text into a field in the finished form, I want to turn on a border for that field.

When there is no text in that field, I want the border to turn off.

Is this possible? If so, does anyone have any suggestions?

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 7

just put in the exit event of the textfield (in formcalc):

if ($.isNull == 0) then

$.border.edge.presence = "visible"

else $.border.edge.presence = "hidden"

endif

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

just put in the exit event of the textfield (in formcalc):

if ($.isNull == 0) then

$.border.edge.presence = "visible"

else $.border.edge.presence = "hidden"

endif