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

Change default field templates #167

Open
janmeeus opened this issue Dec 13, 2017 · 3 comments
Open

Change default field templates #167

janmeeus opened this issue Dec 13, 2017 · 3 comments

Comments

@janmeeus
Copy link

Is there a way to have custom markup for all the field types that are included in forms.twig ?

For example: I would like to change the markup (html, class…) of _includes/forms/text.html or _includes/forms/checkbox.html.

But instead of just changing the files in the _display/templates/_includes, I would like to overwrite them in my own /craft/templates/_amforms/_includes folder.
Moving forms.twig and the _includes to this folder doesn't seem to work.

@chromadesign
Copy link

I would be interested in that as well!

@DHoogland
Copy link

I'm running into this issue too. I want to make a zip code field that autocompletes the address in the form, with disabled street/city field.

@DHoogland
Copy link

I was able to overwrite the text field, having some trouble with the checkbox at the moment. Will update when I find a solution.

This is how I fixed my text field: Try to set the to the path in the settings to the directory where the twigs are. If you use the default names/copied the amforms templates, you don't have to enter the filename at the end. If you use custom names, add the custom name at the path too, without extension.

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

3 participants