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();
});   

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]