Is is possible to make custom field optional? #7137
Answered
by
jonwaldstein
barellano
asked this question in
Developer Q&A
-
I am implementing a custom field hooking into give_fields_after_donation_levels, however, I'd like to make it optional instead of required/read only. Is there a method for "optional" opposed to required() or readOnly() method? |
Beta Was this translation helpful? Give feedback.
Answered by
jonwaldstein
Dec 8, 2023
Replies: 1 comment 2 replies
-
@barellano typically "optional" would mean the absence of |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
barellano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@barellano typically "optional" would mean the absence of
required()
or you could explicitly set required to false:$field->required(false)