Validation in Tailor Fields

Hey everyone. With Tailor out, I find myself coming across this question a lot with the sites I build. Does Tailor fields (specifically the markup that makes the fields appear in the backend [globals, stream, structure etc]) support validation?

Hey, take a look at the Content Fields article:

Each field can specify a validation property that supports all the typical model validation rules. For example:

your_age:
    label: Your Age
    type: number
    validation:
        - numeric
1 Like

Not sure how to write the validation for require_if

so far I got

validation:
      - required_if:
        - order_status,==,shipped

Figured it out. It’s the following

validation:
      - required_if:order_status,shipped
1 Like