Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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