Hey there,
I'm trying to fill a select field with dynamic options, like pages from a certain subfolder, but it does not seem to work in frontend forms.
form:
name: contact
fields:
- name: Name
type: text
label: "Your Name"
- name: Recipient
type: select
label: "send to"
'@data-options': '\Grav\Theme\MyOwnTheme::getRecipients'
So is there a way to populate a select with dynamic options? Or is it possible to create a complete custom Form-Field-Type?