Component Conditions - XML Hack

  • 3
  • Idea
  • Updated 2 years ago
  • (Edited)
As per this posts requested feature, here is the xml needed to add a condition to a component.

<condition type="fieldvalue" value="Consumer" enclosevalueinquotes="true" field="Problem_Category__c"/> </conditions>  

The use case for the client I am working is that they store many records in one object and want to display multiple groups of records based on which picklist value is selected. The picklist has 10 values so I could create 10 models, but It's much simpler to create on model and setup a component condition for each picklist value. So now we have one model and 10 tables vs 10 model and 10 tables. Much easier to manage.
Photo of Pat Vachon

Pat Vachon, Champion

  • 45,236 Points 20k badge 2x thumb

Posted 2 years ago

  • 3

Be the first to post a reply!