Issue with rendering condition : custom logic (1 AND 2) OR (1 AND 3)

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
  • (Edited)
I'm on Brooklyn Update 1 - Iteration 7

I have the following rendering conditions for a field 'Transfer Other'

1: Transfer Definition = Other
2: Applies = 'Yes
3: Type = 'Sell'

The field should render if (1 AND 2) OR (1 AND 3) - This does not seem to work even though it should

Any suggestions?

Roy
Photo of Royston Goveia

Royston Goveia

  • 424 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Royston Goveia

Royston Goveia

  • 424 Points 250 badge 2x thumb
fr = skuid.$M('MyModel').getFirstRow();
(fr.Transfer_Def__c == 'Other' && fr.Applies__c == 'Yes') || (fr.Transfer_Def__c == 'Other' && fr.Type__c=='Sell')

returns false which means the field should not be rendered
Photo of Royston Goveia

Royston Goveia

  • 424 Points 250 badge 2x thumb
I got it:  1 AND (2OR3) don't know why I didn't think of this in the first place!
Photo of Neena Koli

Neena Koli

  • 162 Points 100 badge 2x thumb
hey Royston, nice to find u here...
(Edited)
Photo of Royston Goveia

Royston Goveia

  • 424 Points 250 badge 2x thumb
Hey Neena, great to hear from you, reminds me of the Siebel On Demand duo :)