Currently looking to render a field enabled/disabled based on model value but can’t seem to get it working as required.
For example, trying to use a “Model field value” with the “Single specified value” of {{{$Model.CurrentUser.data.0.AccountId}}} to determine whether to render a field enabled.
Can’t get it to work as I like so having to use a “Snippet returns true” with the following:-
return skuid.$M(‘LadderTemplate’).datad0].DefinedBy__c === skuid.$M(‘CurrentUser’).dataM0].AccountId;
Whilst the above workaround gets things done as required, would like to undertsand why the simpler/cleaner approach doesn’t work.
Page 1 / 1
Hmm, I’m not sure why that didn’t work - it should have. You might double check that the AccountId is included in the CurrentUser model and that the value is what you expect (although it looks like the value is what you expect if it works in the snippet)
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.