Hello,
I am struggling to figure out how to make the if statements run each time the Status__c field is changed, is anyone able to help me with this? I’m sure it is something simple.
The snippet is on the Comments__c field in a table:
var $ = skuid.$;
var field = arguments[0],
value = arguments[1],
model = field.model,
row = field.row;
if ( row.Status__c===“Not Applicable” ) {
skuid.ui.fieldRenderers.TEXT.edit(field, value);
if( value === null ){
field.element.css({‘border’:‘solid 2px #ff0000’});
}
}
else if ( row.Status__c===“Completed” ) {
skuid.ui.fieldRenderers.TEXT.readonly(field,value);
}
else {
skuid.ui.fieldRenderers.TEXT.readonly(field,value);
}
Question
execute javascript when another field in table row has changed
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.