Title: Add JavaScript to form page
Last modified: August 30, 2016

---

# Add JavaScript to form page

 *  Resolved [bethrobson](https://wordpress.org/support/users/bethrobson/)
 * (@bethrobson)
 * [11 years ago](https://wordpress.org/support/topic/add-javascript-to-form-page/)
 * 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://wordpress.org/plugins/user-submitted-posts/](https://wordpress.org/plugins/user-submitted-posts/)

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

 *  Thread Starter [bethrobson](https://wordpress.org/support/users/bethrobson/)
 * (@bethrobson)
 * [11 years ago](https://wordpress.org/support/topic/add-javascript-to-form-page/#post-6210410)
 * 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](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-javascript-to-form-page/#post-6210648)
 * 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.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/add-javascript-to-form-page/#post-6210648)
 * Status: resolved