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

Also allow registration of templates using the #id (preferred over registration by type) #53

Open
florianpilz opened this issue Mar 18, 2016 · 0 comments

Comments

@florianpilz
Copy link
Contributor

Say I have a multiple forms which also require the user to input a credit card. Thus I made a template for credit cards, which consists of 4 Input fields side-by-side (since a credit card has 4 groups with 4 numbers each).

The type of the input field is a string, so the default template is just a single input field. To use my special template for credit cards, I currently have to explicitly declare the usage for every form. But since it is the same concept in all forms, I made sure the field is always named credit_card. Thus in all forms the credit card field has the id field-credit_card.

It would be great if I could register the template in a way, that it is automatically used for every field that is named field-credit_card, no matter which type this field has. (Of course, declaring another template in the form options will override the global registration by field name).

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