Hello i am using the event rules specifically click wherein i am using a radio b

Hello i am using the event rules specifically click wherein i am using a radio box with two option sand on click of each a separate section is to appear .I am getting stuck at a point where i want to select both options and see both sections . Can you please help me with this ....

OriginalPostID-75979

OriginalPostID-75979

  Discussion posts and replies are publicly visible

Parents
  • We generally use checkbox for multi selection. If you want to use check box for your usecase then try the below js code.

    function checkCheckBoxValues(checkId,hiddenId)
    {

    /*hiddenId contains the section ids to be show/hide*/

    var x= document.getElementsByName(checkId);

    var a = FormAPI.getValue(hiddenId).id;
    var b = new Array();
    c=a.split(";");

    var count = 0;
    for (var i=0;i<x.length;i++)
    {
    if(x[i].checked == true)
    FormAPI.show(c[i]);
    else
    FormAPI.hide(c[i]);
    }
    }
Reply
  • We generally use checkbox for multi selection. If you want to use check box for your usecase then try the below js code.

    function checkCheckBoxValues(checkId,hiddenId)
    {

    /*hiddenId contains the section ids to be show/hide*/

    var x= document.getElementsByName(checkId);

    var a = FormAPI.getValue(hiddenId).id;
    var b = new Array();
    c=a.split(";");

    var count = 0;
    for (var i=0;i<x.length;i++)
    {
    if(x[i].checked == true)
    FormAPI.show(c[i]);
    else
    FormAPI.hide(c[i]);
    }
    }
Children
No Data