locked
hide a section in a form based on a lookup value RRS feed

  • Question

  • I can't  hide a section (new coaching) based on a  lookup value (lookupfieldname)

    here is what i have

    crmForm.all.new_coaching.parentElement.parentElement.parentElement.style.display = 'none';
    crmForm.all.new_coaching_c.parentElement.parentElement.parentElement.style.display = 'none';

    if(crmForm.all.lookupfieldname.DataValue[0].name == "my name")

    }

    //show fields

    crmForm.all.new_coaching.parentElement.parentElement.parentElement.style.display = 'block';
    crmForm.all.new_coaching_c.parentElement.parentElement.parentElement.style.display = 'block';

    }

    I have put it on the OnChange event of the field and OnLoad event of form but I keep getting this error.

    Event:onload
    Error:'crmForm.all.lbmc_valueaddedserviceid.DataValue.0' is null or not an object.


    Apps
    Thursday, December 9, 2010 7:06 PM

Answers

All replies