Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

onclick in volt

How to write onclick event in submit button ....written in volt

edited Oct '16

Here you go :)

{{ submit_button('Send', "onClick": "return confirm('Are you sure?')") }}

You can view other Tag helper functions and how to add options here: