Title: Using an AJAX submit button?
Last modified: December 29, 2018

---

# Using an AJAX submit button?

 *  [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-an-ajax-submit-button/)
 * Hello,
 * I have utilized the Select2 custom field type to handle AJAX calls from the demo
   provided in the Admin Page Framework demo library.
 * Is there an example or a way for tying an AJAX callback to a submit button call
   with a custom submit button? It looks like when you add a custom button field
   type, it just adds a Save Changes button.
 * I’m looking at this documentation here: [Submit Button Documentation](http://admin-page-framework.michaeluno.jp/en/v3/class-AdminPageFramework_FieldType_submit.html)
   and didn’t notice an AJAX possibility there.
 * I’ve built up a campaign builder with JSON feeds, they add feeds to each campaign(
   Repeater field system) and then save changes. I’d like to add a custom AJAX button
   to pull from those feeds and create posts with the feeds in each campaign on 
   the fly from within the admin UI.
 * I could probably just do it quicker by adding a custom AJAX Call entirely separate
   from the Admin Page Framework itself but I was just wanting to make sure there
   wasn’t a way to “build it in” to an existing system you have in place like I 
   did with your Select2 demo.
 * Thanks
    -  This topic was modified 7 years, 5 months ago by [ryan4021](https://wordpress.org/support/users/ryan4021/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-an-ajax-submit-button/#post-11034792)
 * There is no built-in way for what you asked, sorry.
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-an-ajax-submit-button/#post-11044733)
 * Ok sounds good,
 * Thank you for the great framework

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using an AJAX submit button?’ is closed to new replies.

 * ![](https://ps.w.org/admin-page-framework/assets/icon-256x256.png?rev=998199)
 * [Admin Page Framework](https://wordpress.org/plugins/admin-page-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/admin-page-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/admin-page-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-page-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-page-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-page-framework/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [button](https://wordpress.org/support/topic-tag/button/)
 * [custom field type](https://wordpress.org/support/topic-tag/custom-field-type/)

 * 2 replies
 * 2 participants
 * Last reply from: [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/using-an-ajax-submit-button/#post-11044733)
 * Status: not resolved