The very first form I created in LiveCycle Designer has a "check form" button with code to check mandatory fields. If the fields aren't completed, a message box appears and the field is highlighted in red. Once the field is completed and the user clicks the check form button again, the red highlighting disappears.
I've just noticed that on the first mandatory field (which is actually a radio button list), after the user completes it and clicks the check form button again, it puts a border around the list. It's so not a big deal, it's just kind of bugging me and I can't figure out how to change the code.
Can you see what is putting in a border? Please keep in mind this was my first form and consequently I have way more "layers" to my objects than I know now that I need -- but at the time it was the only way I could figure out to get the layout to work.
Thanks!
form1.Endofformbuttons.endofformrow1.checkform::click - (JavaScript, client)
if (form1.pageonesubform.Toppageone.firstsubform.agencyuseonlytable.Row3.typeofrequest.typeo frequestlist.isNull)
{
form1.pageonesubform.Toppageone.firstsubform.agencyuseonlytable.Row3.typeofrequest.typeofr equestlist.border.fill.color.value = "255,0,0";
xfa.host.messageBox("Type of request is not checked. Please scroll up and complete fields highlighted in red, then recheck form.");
}
else
{ form1.pageonesubform.Toppageone.firstsubform.agencyuseonlytable.Row3.typeofrequest.typeof requestlist.border.fill.color.value = "255,255,255"; }