Title: Forms and functionality
Last modified: April 15, 2021

---

# Forms and functionality

 *  Resolved [rumraisingelato](https://wordpress.org/support/users/rumraisingelato/)
 * (@rumraisingelato)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/forms-and-functionality/)
 * Hi –
 * 1. I am trying to create a pop-up form on my site that will only appear when 
   a visitor (who hasn’t already subscribed) is leaving the website. Not sure if
   this is possible, but at the very least, would like it to pop up when someone
   goes to leave the website (no matter if they have subscribed or not). I saw a
   blog post on your site (LyraThemes) related to this, but couldn’t find the exact
   information I was looking for. Any suggestions?
 * 2. I am trying to setup my “contact” page using WPForm – do you have the code(
   or short code) from the demo that I can use? I would like it to look just like
   the demo.
 * Thanks!

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

 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/forms-and-functionality/#post-14329657)
 * Hi [@rumraisingelato](https://wordpress.org/support/users/rumraisingelato/), 
   thanks for another great question!
 * 1. This is unfortunately a bit outside the scope of the theme, your best bet 
   is probably going to be looking on the plugin directory for a popup plugin that
   includes the features you’re looking for:
    [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
 * 2. We’re using the Contact Form 7 plugin on that particular page…here’s the code
   we used for the form:
 *     ```
       <div class="row">
           <div class="col-sm-6">
               <div class="form-group">
                   <label class="form-label">Name <span class="asterik">*</span></label>
                   [text* full-name class:form-control placeholder "Full Name"]
               </div>
               <div class="form-group">
                   <label class="form-label">Email Address <span class="asterik">*</span></label>
                   [email* email class:form-control placeholder "Email Address"]
               </div>
               <div class="form-group">
                   <label class="form-label">Subject</label>
                   [select subject class:form-control "Option 1" "Option 2" "Option 3"]
               </div>
               <div class="form-group">
                   <label class="form-label">Comment</label>
                   [textarea message class:form-control "Message"]
               </div>
               <div class="form-actions">[submit class:btn class:btn-default "Submit"]</div>
           </div>
       </div>
       ```
   
 * And the shortcode will be provided to you by the CF7 plugin after you’ve created
   the form.
 * Hope this helps! 🙂
 *  Thread Starter [rumraisingelato](https://wordpress.org/support/users/rumraisingelato/)
 * (@rumraisingelato)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/forms-and-functionality/#post-14339265)
 * Thanks. The code was super helpful.
 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/forms-and-functionality/#post-14344336)
 * Thanks for letting us know! 🙂

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

The topic ‘Forms and functionality’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/juliet/2.1.1/screenshot.jpg)
 * Juliet
 * [Support Threads](https://wordpress.org/support/theme/juliet/)
 * [Active Topics](https://wordpress.org/support/theme/juliet/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/juliet/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/juliet/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/forms-and-functionality/#post-14344336)
 * Status: resolved