Home › Forums › Feature Requests › Generic action buttons for ajax › Reply To: Generic action buttons for ajax
Hi @brian1037
Altho it might not be the prettiest, if you want to put a button somewhere using ACF you can create a “message” field and add the button to that. You can put something like
<button type="button" class="button-secondary" id="my-ajax-trigger" data-action="myajaxaction">Trigger AJAX please</button>
in it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.