Title: Default RSVP Count
Last modified: June 28, 2018

---

# Default RSVP Count

 *  Resolved [frankdinolfo](https://wordpress.org/support/users/frankdinolfo/)
 * (@frankdinolfo)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/default-rsvp-count/)
 * How can I eliminate or default the the rsvp count to 1? so the form appears automatically
   when you click RSVP NOW?
 * [https://www.laffey.life/event/relocation-opportunities-attitude/?tickets_process=#rsvp-now](https://www.laffey.life/event/relocation-opportunities-attitude/?tickets_process=#rsvp-now)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-rsvp-count%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/default-rsvp-count/#post-10452962)
 * Hey there **[@frankdinolfo](https://wordpress.org/support/users/frankdinolfo/)**!
 * Thanks for reaching out.
 * Give this snippet a shot in your child theme’s functions.php file:
 *     ```
       /**
         * Set default quantity of 1 and READONLY for all tickets:
         * - Event Tickets RSVP
         * - Event Tickets Plus WooCommerce
         * - Event Tickets Plus Easy Digital Downloads
         *
         * From https://gist.github.com/cliffordp/80b33455779b74ec49f6ea3033cb47bf
         *
         * Same as https://gist.github.com/cliffordp/5b57df71be8b52f595817ddbf81acdab except make quantity readonly
         * Watch out if you have more than 1 ticket per event!
         *
         * ! You may want to use https://gist.github.com/cliffordp/9a457b724e38b3036f8d48adc90930ed instead!
         */
       function cliff_all_tickets_default_quantity_and_readonly() {
       	// bail if not on a Single Event page
       	if ( ! function_exists( 'tribe_is_event' ) || ! tribe_is_event() ) {
       		return false;
       	}
   
       	wp_enqueue_script( 'jquery' );
       	?>
       	<script type="text/javascript">
       		jQuery(document).ready( function () {
       			// RSVP, Woo, and EDD tickets default to quantity of 1
       			jQuery( 'input.tribe-ticket-quantity, .woocommerce .quantity input.qty, .edd.quantity input.edd-input' ).val( 1 ).attr( 'readonly', true );
   
       			// CSS to display RSVP tickets' "Send RSVP confirmation to" fields
       			// Note: will continue to show even if user changes quantity to zero because we didn't bind to the field to continually watch it
       			jQuery( 'tr.tribe-tickets-meta-row' ).show();
       		});
       	</script>
       	<?php
       }
       add_action( 'wp_footer', 'cliff_all_tickets_default_quantity_and_readonly' );
       ```
   
 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/default-rsvp-count/#post-10502127)
 * Hey there,
 * Since this thread has been inactive for a while, I’m going to go ahead and mark
   it as resolved. Don’t hesitate to create a new thread any time you help again!
 * Ed 🙂

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

The topic ‘Default RSVP Count’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ed](https://wordpress.org/support/users/erishel/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/default-rsvp-count/#post-10502127)
 * Status: resolved