Answer the question
In order to leave comments, you need to log in
How to call a snippet on a button?
How to call a custom snippet on a button?
Answer the question
In order to leave comments, you need to log in
Yes, AjaxSnippet will probably be the most convenient, but you can (if for some reason AjaxSnippet is not suitable) and through the custom Formit hook (after converting your snippet into a hook - https://docs.modx.com/current/en/extras/ formit/for... ) or simply submitting the form to a page where to call your snippet and parse the incoming POST array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question