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

💥 Join the Exclusive Trading Community and Experie[…]

Briefly introduce the topic and provide context. S[…]

If you want to know the best technique to export P[…]

Nursing dissertation help topics

Home of Dissertations is the most used platform th[…]