I need to have a form with a single text field where a user enters a value. I then need the value of the entry to display dynamically on the page as soon as the form is submitted. (It will appear inside a code snippet that the user can copy/paste)
What are my options for doing this? Is there a way to do it without creating a custom page template (maybe using a shortcode or something)? I also would like the value to display on the same page as the form. Ideally this would be done using Javascript to avoid reloading the page, but I can have the page reload with the posted data if needed.
Thanks in advance for any input/direction.