Component Conditions - XML Hack

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

<conditions>
<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 mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 1 year ago

  • 3

Be the first to post a reply!