How can I use the "value" field in admin Description field in Radio? #10612
Unanswered
scottyeung
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below snippet works but the linter said there's an error and cannot build properly. Can anyone show some insights on this one? Thanks.
{ name: "transactionType", label: "Transaction Type", type: "radio", required: true, admin: { description: ({ value }) => { if (value === 'productTree') { return "*Description goes here." } return null; } }, options: [ { label: "Affiliate", value: "affiliate", }, { label: "Product Tree", value: "productTree", }, ], defaultValue: "productTree", },
Beta Was this translation helpful? Give feedback.
All reactions