About us
ProcessMaker Inc. is the developer of the ProcessMaker Workflow & BPM Software Suite. Read more
$("#checkbox0000000001").setOnchange( function(newVal, oldVal) {
if (newVal = '"["1"]"') {
$("#text0000000021").getControl().attr('disabled', true);
}
} );
function enableDisableText(newVal, oldVal) {
if( newVal === '["1"]' ) {
$("#storysource20").getControl().attr('disabled', true);
} else {
$("#storysource20").getControl().attr('disabled', false);
}
}
$('#checkboxVar001').setOnchange(enableDisableText);
function enableDisableText(newVal, oldVal) {
if( newVal == "1" ) {
$("#storysource20").getControl().attr('disabled', true);
} else {
$("#storysource20").getControl().attr('disabled', false);
}
}
$('#checkboxVar001').setOnchange(enableDisableText);
function enableDisableText(newVal, oldVal) {
if( newVal == '"1"' ) {
$("#storysource20").getControl().attr('disabled', true);
} else {
$("#storysource20").getControl().attr('disabled', false);
}
}
$('#checkboxVar001').setOnchange(enableDisableText);
function enableDisableText() {
if( $('#storyapproved001').getValue() == '"1"' ) {
$("#storysouce1").getControl().attr('disabled', true);
} else {
$("#storysouce1").getControl().attr('disabled', false);
}
}
$('#storyapproved001').getValue(enableDisableText);
$('#storyapproved001').getValue(function () {
if( $('#storyapproved001').getValue() == 1 ) {
$("#storysouce1").getControl().attr('disabled', true);
} else {
$("#storysouce1").getControl().attr('disabled', false);
}
} );
function enableDisableText() {
if( $('#storyapproved001').getValue() == '"1"' ) {
$("#storysouce1").getControl().attr('disabled', true);
} else {
$("#storysouce1").getControl().attr('disabled', false);
}
}
enableDisableText();
function enableDisableText() {
if( $('#storyapproved001').getValue() == '"1"' ) {
$("#storysouce1").getControl().attr('disabled', true);
} else {
$("#storysouce1").getControl().attr('disabled', false);
}
}
$( document ).ready( enableDisableText );
$( window ).on( "load", enableDisableText );
$( "document" ).ready( enableDisableText );
$().ready( enableDisableText );
$( "img" ).ready( enableDisableText )
$(document).on( "ready", enableDisableText )
if( $('#storyapproved001').getValue() == '"1"' ) {
if( $("#storyapproved001").getValue() == '["1"]' ) {
if( $('#storyapproved001').getValue() == '"["1"]"' ) {
and a few others
function enableDisableText() {
if( $('#disableCountry').getValue() == '1' ) {
$("#country").getControl().attr('disabled', true);
} else {
$("#country").getControl().attr('disabled', false);
}
}
enableDisableText();
nycmwr3 wrote:Is there any way this can be done using a php trigger instead of javascript before a dynaform loads ? I am trying to disable fields using a php trigger and I am not sure how to go about this . I couldn't find any examples on the processmaker wiki either.Let's say that you want to enable a field whose ID is "selectCountry" if the "exportAbroad" checkbox is marked or disable it if it isn't marked.
@@enableSelectCountry = "yes"; //enabled by default
//if exportAbroad is not marked, then disable the "selectCountry" field in the next form:
if (is_array(@=exportAbroad) and @=exportAbroad[0] == '0') {
@@enableSelectCountry = "no";
}
$("#enableSelectCountry").getValue() == "no") {
$("#selectCountry").getControl().attr("disabled", true);
}
$("#dropdownID").getControl().prop("disabled", true);
A 1xBet clone script replicates the functionalitie[…]
BetMGM clone script is a ready-made software solut[…]
An Aviator clone script is a pre-built software so[…]