Questions, suggestions and discussion around ProcessMaker 3 documentation
#783173
Hi everybody!

There is no documentation about how to acces radio button in the wiki, so i'm trying to give my solution here.
I hope it can help someone.
Code: Select all
    $("#radioName").change(function () {
      if ($('input[value=0]').prop("checked")){
          document.getElementById('fieldName').style.display = "none"; //hide if value 0 is checked
        } else {
          document.getElementById('fieldName').style.display = ""; //show if value 0 is unchecked
        }
        
    });
#785457
You can use the following javascript code to hide a radio button (or any other type of control):
Code: Select all
$("#radioId").hide()
To show it:
Code: Select all
$("#radioId").show()
Change the code to the radio button's ID.

For example, create a checkbox with the ID "hideRadio" and create a radio button with the ID "radioList". Then the following JavaScript will hide the radio button when the checkbox is marked:
Code: Select all
$("#hideRadio").setOnchange( function(newVal, oldVal) {
   if ($("#clientType").css("display") == "none")
      $("#clientType").show();
   else
      $("#clientType").hide();
});   

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]