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
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

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