• Resolved bethrobson

    (@bethrobson)


    Version 20150507 of User-submitted-posts.

    I would like to add some JavaScript to the form page to show a “loading” icon once the user clicks submit and before the thank you page is shown.

    Do you have an article on how to do this? If not, do you have any tips on how to find the form page in the plugin and modify it? I’m assuming if I do this I will not be able to easily upgrade the plugin. Is there a better way to do this than modifying the form page directly? I don’t want to add the javascript to other pages on the site (obviously), so if you have a best practice for how to add JavaScript to just one page that would be awesome.

    Using the form to upload images is currently confusing users because the only visible indication that the image is uploading is the tiny status bar at the bottom of the browser window.

    Thank you!!!

    Elisabeth

    https://www.ads-software.com/plugins/user-submitted-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bethrobson

    (@bethrobson)

    I got a solution to this by adding a js script with enqueue script in functions.php, with the js stored in the plugin’s resources folder. No idea if this is the right way to do it, but it seems to be working.

    Plugin Author Jeff Starr

    (@specialk)

    Hi Elisabeth,

    Glad you found a solution, and thank you for posting the follow-up message ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add JavaScript to form page’ is closed to new replies.