Forums

Forums / Developing Portals / Rules Manager code not working on CRM Yes/No

Rules Manager code not working on CRM Yes/No

Thread is closed for posting
2 posts, 1 answered
  1. salzheimer
    salzheimer avatar
    7 posts
    Registered:
    31 Jul 2015
    20 Oct 2016
    Link to this post
    I have setup a rule to call a javascript function when a picklist combo box has changed. The code inside the js function is
     if(args.get_item().get_text()=="United States"){
       setControlValue(findControl('.CrmBoolean_C012'),true);
      }else{
      setControlValue(findControl('.CrmBoolean_C012'),false);
      
      }
    The value seems to be updatiing with the "setControlValue" function, but the radio button view is not updating. The value in the view seems to be what is pushed to CRM with in accurate information.  

    Scott
  2. Missing user
    Missing user avatar
    Answered
    20 Oct 2016 in reply to salzheimer
    Link to this post
    Hi Scott,

    The Javascript API was little trick to set, you were supposed to use true for setting the Boolean field value as Yes but to set ​value as No you needed to use “0”


    Thank ​You
    Syed

2 posts, 1 answered