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

Check out Xtraxtor PST to MBOX Converter on your[…]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 ver[…]

DO we have to pay tax for trade https://www.getfir[…]

Mosquito Zapper Reviews

https://www.facebook.com/sammosquitozapper https:[…]