How can I make fields in the Forms optional instead of required? #7236
Unanswered
IcreatedThisForMyGame
asked this question in
Troubleshooting
Replies: 1 comment 2 replies
-
Just remove the
|
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
-
I am editing the YAML file that looks like this:
ections:
main:
display: Main
fields:
-
handle: company
field:
input_type: text
antlers: false
display: Unternehmen
type: text
icon: text
listable: hidden
validate:
- required
-
handle: employees
field:
display: Mitarbeiterzahl
type: text
icon: text
listable: hidden
validate:
- required
......
I want the fields to be able to be left empty / optional. I tried to remove "validate: -required", I removed the "required", I changed "required" to "optional" -> 500 server error :/
Also another question ; If I want to expand the form I also get 500 Server errror. Am I correct that I would just have to copy one of the secitons in this YAML file and also copy a HTML section under resources/views/partials/shared/form.antlers.html? Or are there other files that also need to be edited to make a form have more fields? thanks.
Beta Was this translation helpful? Give feedback.
All reactions