Forums

Forums / Developing Portals / Clear Selection of CRMYesNo field

Clear Selection of CRMYesNo field

Thread is closed for posting
2 posts, 1 answered
  1. smehdi
    smehdi avatar
    40 posts
    Registered:
    23 Mar 2015
    12 Nov 2015
    Link to this post
    How to clear selection of CRMYesNo widget via Javascript? The ClearSelection method is not exposed
  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    12 Nov 2015 in reply to smehdi
    Link to this post
    Hi Shan,

    For the latest version of TPC this can be accomplished by running the following JavaScript code on your widget:

    $(findControl(".CrmBoolean_C005").get_booleanControl()).find("input").prop("checked",false);
    

    Submitting the form with a null value is undefined behaviour, the null value may be submitted to CRM as NULL or it could default to "No"

    Regards,
    Clinton
    Last modified on 12 Nov 2015 19:11 by Clinton Bale
2 posts, 1 answered