Expand my Community achievements bar.

Argument mismatch error

Avatar

Level 7

I'm trying a simple click a radio button to select another radio button. I'm getting this error message:

GeneralError: Operation failed.

XFAObject.rawValue:2:XFA:form1[0]:page2[0]:assocType[0]:RadioButtonList[0]:click

Argument mismatch in property or function argument

Here's my script:

 

if (this.rawValue == 1) {

 

page2.wklyHours.RadioButtonList.rawValue

=

3;

else

{

page2.wklyHours.RadioButtonList.rawValue

=

0;

}

Thanks,

MDawn

3 Replies

Avatar

Level 10

Hi,

It depends on the bound values for the radio button exclusion group (see Object > Binding palette).

If the radio button exclusion group does not have a bound value of 0, then it would throw an error. If you are trying to clear the radio button exclusion group you set it a string value of zero length.

page2.wklyHours.RadioButtonList.rawValue = "";

Hope that helps,

Niall

Avatar

Level 7

I changed the else statement, but that didn't help. Can you take a look at the form for me? I had this script working on another version of this form and now that I recreated the form, it's not working.

Thanks,

MDawn