Hi !
I am new to CRM 2011 . My question is how to write logc to show one field and hide another base on radio button select. I have new or existing customer radio button. If existing customer option selected on radio button new customer field disappears from form and only existing customer field will stay. So far I found something like this
if (crmForm.all.new_neworexisting.DataValue == true) {
// Visible
crmForm.all.customerid_c.style.visibility = "visible";
crmForm.all.customerid_d.style.visibility = "visible";
crmForm.all.companyname_c.style.visibility = "hidden";
crmForm.all.companyname_d.style.visibility = "hidden";
}
else
{
crmForm.all.customerid_c.style.visibility = "hidden";
crmForm.all.customerid_d.style.visibility = "hidden";
crmForm.all.companyname_c.style.visibility = "visible";
crmForm.all.companyname_d.style.visibility = "visible";
}
|