I am using the WordPress Plugin Boilerplate to show a form to the user via shortcode. I am just a little confused of the flow of data not so much the syntax to do it.
My Main Public Class has a method that creates a form when a user adds the shortcode. I have a class that can take the form data and build a URL that calls an API.
Question: Once the data is returned can I pass the data and update the original page with the form to show the data? This is were I am not 100% sure how to do.
So the user experience should include completing the form, submitting (maybe a loader animation) and the data appears below the form.
****I don't need code I am just looking for an direction on the flow of data.**