I have a UI Only checkbox field called ‘Hide’ on the work experiences model.(I have this field updated to = ‘true’ on a particular row via a row action) I am trying to create a snippet which will return true when any row has had this field updated to ‘true’. Then I am hoping to use this snippet for an enable condition to enable another field on the same model. This snippet below doesnt seem to work(I can verify x=true once I update only the top row to hide=true. Any ideas as to what I’m doing wrong?
$ = skuid.$;
var weModel = skuid.$M(‘WorkExperiences’);
var weList = weModel.getRows();
var x;
for (var i = 0; i < weList.length; i ++) {
if (weList[i].Hide === true) {
x= true;
break;
}
else{
console.log(‘No’);
x=false;
}
}
Question
Snippet as enable condition
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.