Rendering Based On Model Value

edited May 2018 in Questions
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 {{{$}}} 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').data[0].DefinedBy__c === skuid.$M('CurrentUser').data[0].AccountId;

Whilst the above workaround gets things done as required, would like to undertsand why the simpler/cleaner approach doesn't work.


  • Amy DewaalAmy Dewaal Member, Skuad ✭✭
    edited May 2018
    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)
Sign In or Register to comment.