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

For anybody struggling with names on radio buttons and checkboxes #331

Open
aptvaltechtest opened this issue Sep 28, 2022 · 2 comments
Open

Comments

@aptvaltechtest
Copy link

Just set the id and it copies over to the name at render

@aptvaltechtest
Copy link
Author

{ tag: 'input', config: { label: 'Checkbox Group', editorLabel: 'Checkbox Group', disabledAttrs: ['name'], lockedAttrs: ['name','required','className'], }, meta: { group: 'common', id: 'chkbox', icon: 'checkbox', }, options: [ {label: 'Option 1', value: 'opt1', selected: true} ], attrs: { id: '', className: '', type: 'checkbox', required: true, }, },

@kevinchappell
Copy link
Collaborator

the id name was originally implemented to prevent name collisions but i think we can remove this restriction and add a tooltip informing the form editor if an element already exists with the same 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

2 participants