Forums

Forums / Developing Portals / Query on CRM Yes/No Widget

Query on CRM Yes/No Widget

Thread is closed for posting
3 posts, 1 answered
  1. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    02 Apr 2015
    Link to this post
    Hi
    Can we find whether a CRM Yes/No Widget is checked or not ?
    like $("input[name='account']").is(':checked') ​ in html radio button.
  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    02 Apr 2015 in reply to vmeesaraganda
    Link to this post
    Hello,

    This can easily be done using the same API that the RulesManager utilizes.

    In order to reference the specified boolean field you must first grab the name for developers from the yes/no control:



    From there, you can use this snippet to get or set values for that control, replacing CrmBoolean_C001 with your control name:

    var b = $find($(".CrmBoolean_C001").attr("id"));
    b.set_value(false);
    
    var x = b.get_value();
    
    Last modified on 02 Apr 2015 13:04 by Clinton Bale
  3. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    13 Apr 2015 in reply to Clinton Bale
    Link to this post
    Hello Clinton

    Can we make a CRM Yes/No widget required like other widgets.
    $("input[name='account']").is(':checked') 
    We would use the above code to check whether a radio button is checked or not in HTML but how can we accomplice the same with CRM Yes/No Widget.

3 posts, 1 answered