Value Validation
In Field Design, create a value validation rule with a name, applicable buttons, boolean formula, failure action, error field and message. Rules apply to enabled form buttons available in New or Edit mode; list-only buttons cannot be used. Read the current button design to obtain actual button IDs.
A formula result of true passes; false produces the configured Block or Warn issue. Formula errors and non-boolean results always block. Select a real enabled field for the error location. Messages can contain field placeholders such as {{amount}} and permitted related field paths. The rule and message paths are validated against the form's real schema.
The dialog previews computed results while editing. Frontend feedback does not replace server validation when the applicable form action executes. Save the rule before testing the configured button with both valid and invalid values.
CLI
sl system form value-validation list --form-id "$FORM_ID" --json
sl system form value-validation save --form-id "$FORM_ID" --definition-file rule.json --json
sl system form value-validation delete --form-id "$FORM_ID" --rule-id "$RULE_ID" --json
rule.json is the complete rule object (not a rule wrapper):
{"id":"11111111-1111-4111-8111-111111111111","name":"Positive amount","buttonIds":["preset:<actual-button-id>"],"formulaExpression":"FIELD(\"amount\") > 0","failureAction":"block","fieldApiName":"amount","message":"Amount must be positive: {{amount}}"}
Replace the sample IDs and API name with discovered values. id identifies the rule: reuse it to update, generate a new UUID to add. buttonIds uses preset:<id> or custom:<id>. Save validates permissions, formula, message paths and button scope through the form domain and returns all rules. Delete returns the remaining rules. All commands require field design permission and operate on the tenant database; they are not unsaved page draft operations.
Button selection
Only enabled buttons for new/edit pages can be selected. The Cascader groups buttons by placement and shows preset/custom source tags beside button names. Multiple selections and search are supported.