-
-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{ select_var:label }} is not working #2066
Comments
Could this be happening because in the blueprint in the options array it wraps the labels in single quotes? I see in the doc's they are double quotes. |
Just FYI, I have a select field that has multi true and it is outputting the label with: {{ select_var }}{{ label }}{{ /select_var }} only difference is multiple true. |
This appears to be resolved. Let us know if you're still running into this issue. |
Still having an issue or an issue with understanding...https://discord.com/channels/489818810157891584/489819906540568593/759143098893992007 |
I missed that you said it's in a form email. Maybe that's why it's not working for you. |
Here is what I'm doing with the form:submission
Then in the HTML email view it's just the normal When I use {{ hearabout }} it DOES render the value. |
To get the labels of the select field you do {{ select_var:label }}. This is not outputting anything. I can get the default of value working with {{ select_var }}.
Make a select with key and label options. Try to use in template like email or on a form submission tag with {{ select_var }}, it works, now try and do with {{ select_var:label }}, it outputs nothing.
Side note: I tried this as well: {{ select_var }}{{ label }}{{ /select_var }}
On docs there is a typo too. https://statamic.dev/fieldtypes/select#templating
Statamic version: 3.0.0.-beta-37
PHP version: 7.3
Install method:
statamic/statamic
The text was updated successfully, but these errors were encountered: