Skip to content

Form with Collection linked to Select menu rendering as empty text input #5804

Discussion options

You must be logged in to vote

We only really support the "automagic" form fields on the front-end for a subset of fieldtypes. If you use the control panel to build your blueprint, you will see which ones are available.

The more complex ones, like the entries fieldtype, aren't there.

However, if you were to just put a non-supported field in your blueprint's yaml, as you've done, you'll just get a fallback basic input field.

You can customize the html of the fields, and create your own.

https://statamic.dev/tags/form-create#dynamic-rendering

You may want to create an entries.antlers.html and in there you could have a collection tag to loop over the entries to populate a <select> element.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@afonic
Comment options

Comment options

You must be logged in to vote
1 reply
@seventyoneindustries
Comment options

Answer selected by seventyoneindustries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants