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

submit button #152

Open
marcus-steinbach opened this issue Aug 17, 2020 · 1 comment
Open

submit button #152

marcus-steinbach opened this issue Aug 17, 2020 · 1 comment
Labels

Comments

@marcus-steinbach
Copy link

How can I add data attributes to the submit button? I want to be able to create them dynamically in the setting.

@nnist nnist added the question label Sep 6, 2020
@stevejalim
Copy link

I'm not sure where you're planning to store the data attributes, but assuming you can get too them from a custom template tag, you could override the streamforms/form_block.html template, call your templatetag to get the vars you need and add them to the submit-button's markup

https://wagtailstreamforms.readthedocs.io/en/latest/templates.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants