Tech Support > Microsoft Windows > Windows CRM > Radio Buton - On Change Java Script
Radio Buton - On Change Java Script
Posted by Snow White on May 5th, 2008


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

Posted by µ¶¿Í on May 5th, 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";


Similar Posts