hi

I have a radio field on the form. Basically I want to make another field
mandatory if the value in radio field = yes. By default the value = no. This
is the code I have below but it doenst work,.
Any help would be appreciated

if (crmForm.all.radio.DataValue == true;)


{

crmForm.all.SetFieldReqLevel("address1_line1",1);

}

Kind Regards
Snow White

Re: Radio Buton - On Change Java Script by caims

caims
Sun May 04 20:43:27 CDT 2008

The MS CRM SetFieldReqLevel function was taken away (for some reason)
in CRM 3.0.
But you can write your code as below,this is of course not supported
by MS.

crmForm.all.address1_line1.setAttribute("req", 2);
crmForm.all.address1_line1_c.className = "req";