{ "sections": [ "title", "description", "file_information", "directory_location", "fields", "sub_types", "wsdl_segment", "declarative_metadata_sample_definition" ], "title": "UiFormatSpecificationSet - Metadata API", "description": "Represents a set of rules that define the style and visibility of conditional field formatting on Dynamic Forms-enabled Lightning page field instances.", "file_information": ".uiFormatSpecificationSet", "directory_location": "uiFormatSpecificationSets", "fields_columns": [ "type", "required", "description" ], "fields": { "field": { "type": "string", "required": true, "description": "The object field that the conditional formatting is associated with." }, "formatType": { "type": "FormatType (enumeration of type string)", "required": true, "description": "The type of conditional formatting associated with the field. Values are: ICON" }, "masterLabel": { "type": "string", "required": true, "description": "The label for the conditional formatting ruleset, which displays in Setup." }, "sobjectType": { "type": "string", "required": true, "description": "The object the ruleset is associated with." }, "uiFormatSpecifications": { "type": "UiFormatSpecification[]", "description": "The list of rules contained in the ruleset." } }, "sub_types": { "UiFormatSpecification": { "formatProperties": { "type": "string", "required": true, "description": "The properties for a given formatType in JSON format." }, "formatType": { "type": "FormatType (enumeration of type string)", "required": true, "description": "The type of conditional formatting associated with the field when the rule evaluates to true. Values are: ICON" }, "order": { "type": "int", "required": true, "description": "A numerical value representing the conditional formatting rule’s position in the evaluation order." }, "visibilityRule": { "type": "UiFormulaRule", "description": "A set of one or more filters that define the conditions under which the conditional formatting appears on the field.If the visibility rule evaluates to true, the formatting displays on the field. If false, it doesn’t display. If this field is null, the formatting displays by default." } }, "UiFormulaRule": { "booleanFilter": { "type": "string", "description": "Specifies advanced filter conditions such as 1 AND 2." }, "criteria": { "type": "UiFormulaCriterion[]", "description": "List of one or more filters that, when evaluated, determine conditional field formatting visibility." } }, "UiFormulaCriterion": { "leftValue": { "type": "string", "required": true, "description": "The field upon which the filter is based. For example, AMOUNT." }, "operator": { "type": "string", "required": true, "description": "Defines the operator used to filter the data. Valid values are: CONTAINS EQUAL NE—not equal GT—greater than GE—greater than or equal LE—less than or equal LT—less than" }, "rightValue": { "type": "string", "description": "The value by which you want to evaluate the formatting visibility. For example, 1000000." } } }, "wsdl_segment": "```xml\n\n \n \n \n\n\n \n \n \n\n\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n\n\n \n \n \n \n\n```", "declarative_metadata_sample_definition": [ { "description": "The following is an example of an UiFormatSpecificationSet component.", "code": "\n\n Contact.Customer_Sentiment__c\n ICON\n Sentiment Score\n Contact\n \n {"icon":"happy_face",\n"iconColor":"green"}\n ICON\n 1\n \n \n {!Record.Customer_Sentiment__c}\n EQUAL\n Happy\n \n \n \n \n {"icon":"neutral_face",\n"iconColor":"gray"}\n ICON\n 2\n \n \n {!Record.Customer_Sentiment__c}\n EQUAL\n Neutral\n \n \n \n \n {"icon":"sad_face",\n"iconColor":"red"}\n ICON\n 3\n \n \n {!Record.Customer_Sentiment__c}\n EQUAL\n Unhappy\n \n \n \n" } ] }