Conditionally required logic or separate the required logic of admin and field. #2338
Stupidism
started this conversation in
Feature Requests & Ideas
Replies: 2 comments 2 replies
-
👍🏼 would love to see this, also wondering if there's an existing ticket for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Stupidism @ssyberg Hello! This is possible, you just need to add {
name: 'url',
label: 'External Link',
type: 'text',
required: true,
admin: {
condition: (_, siblingData) => siblingData?.type === 'external'
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example
Some fields are required if type is external
The other field article is required if type is internal
Beta Was this translation helpful? Give feedback.
All reactions