Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By amosbatto
#826009
What version of PM are you using?

The JavaScript to uncheck a checkbox:
$("#myCheckbox").setValue("0")
or:
$("#myCheckbox").setValue(["0"])
where "myCheckbox" is the ID of the checkbox.

In recent versions, this is the JavaScript to change the value of another field when a checkbox is unchecked:
Code: Select all
$("#myCheckbox").setOnchange(  function(newVal, oldVal) {
    if (newVal ==  '"0"') {
         $("#aField").setValue("some value");
         $("#anotherField").setValue("another value");
    }
});
See:
https://wiki.processmaker.com/3.2/JavaS ... heckgroups
https://wiki.processmaker.com/3.2/JavaS ... etOnchange

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]