locked
CRM check box RRS feed

  • Question

  • In MS CRM online I have 2 fields that are check boxes .  I want additional field options to appear depending on which check box is selected. How do I do this?  
    Monday, July 22, 2013 7:14 PM

All replies

  • You will need to add an onclick handler to the checkbox control. Once the checkbox is clicked, you can identify the state of the checkbox (checked or unchecked). Based on the state, you can then show/hide additional fields.
    • Proposed as answer by Roshan Mehta Monday, July 22, 2013 10:46 PM
    Monday, July 22, 2013 10:46 PM
  • Something like:

    function OnChange() {
        var value = Xrm.Page.getAttribute("new_checkbox").getValue();
        if (value == true) {
            Xrm.Page.getControl("new_othercontrol").setVisible(true);
        } else {
            Xrm.Page.getControl("new_othercontrol").setVisible(false);
        }
    }


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Wednesday, July 31, 2013 4:00 AM
    Moderator