Can Statamic forms have checkboxes that are clickable? #7254
Unanswered
IcreatedThisForMyGame
asked this question in
Q&A
Replies: 2 comments 11 replies
-
Yes, you can use more than just text inputs with forms. It should give you the option of others when editing your form's blueprint: FYI: Please add three backticks (`) at the start & end of any code blocks you post - that'll give you code formatting. |
Beta Was this translation helpful? Give feedback.
8 replies
-
I'm not sure why your form blueprint's file isn't being saved (are you viewing in GitLab - are any changes making their way there?) As you're hard coding all of the fields in the HTML, you'll need to add the HTML for the checkbox input, like this: <input type="checkbox" id="checkboxField" name="handle_of_your_checkbox_field_here">
<label for="checkboxField">
Some text about the checkbox field that users will see & be able to click on to check the box
</label> |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello; I would like to be able to check a box instead of only having text fields in my Form. Is that possible? My YAML form looks like this (IDK if this code is relevant to the answer but I include it just in case)
sections:
main:
display: Main
fields:
handle: company
field:
input_type: text
antlers: false
display: Unternehmen
type: text
icon: text
listable: hidden
validate:
...
And my HTML looks like this:
Beta Was this translation helpful? Give feedback.
All reactions