Expand my Community achievements bar.

SOLVED

Changing border colour of required item

Avatar

Former Community Member

Adobe Livecycle Designer ES v8.2.1

Dynamic PDF

I've spent the last hour searching through broken links and tangential tutorials. I have a required exclusion group (radio buttons) and the user must choose one of the values in order for the form to be valid. The problem is, I have hundreds of checkboxes and they all have a gigantic red border stuck around them. There is no highlighting when one is not checked and the form is submitted, they are simply all bright red.

Here's what I have tried:

Exclusion group on "initialize"

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

Exclusion group on "form::ready"

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

Exclusion group on "layout::ready"

this.border.presence = "invisible";

this.border.edge.presence = "invisible";

this.border.fill.presence = "invisible";

this.borderColor.fillColor = "invisible";

this.borderColor.presence = "invisible";

this.fillColor.presence = "invisible";

None of these are working. Is there honestly no way to control the border colour / visibility of a required item? I can make the whole item disappear easy enough but that doesn't solve anything. Setting the default value is not an option as the client wants to ensure all fields have been thoroughly reviewed by the "clickee"

Thanks for your time.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

LC Designer ES2 has improved validation handling for forms. It does require the user to have version 9 of Acrobat/Reader.

Designer ES2 Form Validation.png

So to avail of these features, you would need to upgrade to LC Designer ES2 and you would need to be happy that your users would have version 9 of Acrobat/Reader.

If not, then you can turn on and off the highlighting. However this applies to all fields. Also while you can change the colour of the field highlight using script, you cannot change the colour of the red manditory border. See: http://assure.ly/jiZ6tn.

John Brinkman has several samples of custom/scripted validation patterns, with samples:

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_1.html

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_2.html

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_3.html

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

LC Designer ES2 has improved validation handling for forms. It does require the user to have version 9 of Acrobat/Reader.

Designer ES2 Form Validation.png

So to avail of these features, you would need to upgrade to LC Designer ES2 and you would need to be happy that your users would have version 9 of Acrobat/Reader.

If not, then you can turn on and off the highlighting. However this applies to all fields. Also while you can change the colour of the field highlight using script, you cannot change the colour of the red manditory border. See: http://assure.ly/jiZ6tn.

John Brinkman has several samples of custom/scripted validation patterns, with samples:

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_1.html

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_2.html

http://blogs.adobe.com/formfeed/2008/11/validation_patterns_part_3.html

Hope that helps,

Niall

Avatar

Former Community Member

Thanks, hopefully I can convince them to get it upgraded. If not this will be helpful later on.