Skip to content
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

type textarea bug #6

Open
chrisvidal opened this issue Dec 19, 2024 · 0 comments
Open

type textarea bug #6

chrisvidal opened this issue Dec 19, 2024 · 0 comments

Comments

@chrisvidal
Copy link

chrisvidal commented Dec 19, 2024

the json content is missing the key type = to textarea for this type of field (I haven't yet checked this other type other than text and email) so that we can override the textarea type using a partial named _type_textarea.htm. since this key is missing, the override does not work.

the type is indeed used in the resolver here

{# Overrides by type #}
{% set typeOverride = __SELF__.alias ~ '::_type_' ~ field.type ~ '.htm' %}

json stored type text:

"label":"First name","type":"text","placeholder":"","name":"first_name","is_required":"1","custom_validation_rules":null,"_field_type":"input"}

json stored type: textarea

{"label":"Your message","rows":8,"placeholder":"","name":"your_message","is_required":"1","_field_type":"textarea"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant