Support » Plugin: Admin Page Framework » 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 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 3 weeks, 4 days ago by  ryan4021.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.