I created a test form to try to get this work and can't seem to make it work. In my form I have a ddlist on page 1. on page 2 I have a subform that the selection in the ddl makes visible--that's working.
There is a radiobuttonlist in the subform. I'd like to check on the submit button if ddl == 2 and radiobuttonlist == null then display a message. Here is my script:
//Create a variable to hold the document object
var
v3 = form1.page1.division.rawValue;
var
v15 = form1.page2.pcEquip.dirAbove.RadioButtonList.rawValue;
if
((v3 == 2) && (v15 == null))
{
xfa.host.messageBox( "Please indicate whether the associate is a director or above" );
xfa.host.setFocus("form1.page2.pcEquip.dirAbove.RadioButtonList");
}
else
{
Button3.execEvent("click");
}
The script is finishing as desired with the email window, but doesn't catch that the radiobuttonlist is null. Any help would be appreciated.
Thanks,
MDawn
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Test the radio button exclusion group against an emply string. For example:
if (v15 == "")
{
// your script here.
}
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
Test the radio button exclusion group against an emply string. For example:
if (v15 == "")
{
// your script here.
}
Hope that helps,
Niall
Views
Replies
Total Likes
That worked. Thank you.
Margaret Dawn
630-850-1065
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies