PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Using Gravity for Sweepstakes - 5 QUESTIONS

  1. gryan
    Member

    1) is there away to schedule start/end dates so when contest is over, we don't receive additional entries?
    2) how do we add an age gate to prevent underage users from entering using bday field?
    3) can we also prevent underage users from changing their bday just to be able to enter? (a 24hr cookie?)
    4) how do we redirect to a page or show custom message after user enters contest?
    5) is there a better way at integrating contest rules instead of creating a field and linking off to another page?

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  2. Yes, you can schedule forms to activate/expire on specific dates & times. You can find this under the advanced tab in the form settings.

    screenshot

    Jumping ahead in the list.. yes, you can set a redirect to an existing page in your WordPress install or to any external site. Those settings are also found under the form settings > confirmation tab.

    screenshot

    For the contest rules, you have lots of options, it just depends on your preference. You can use one of the freeform HTML blocks added inline. You would simply include your contest rules in there. You could iframe the content in from another page or site or since the content would most likely be lengthy, you could just wrap it in a div with the overflow set to auto so it would scroll.. something like this.

    <div id="contest_rules" style="height:150px; overflow:auto">
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi.</p>
    </div>

    Now, on to the age part. There isn't any conditional logic associated with the default date field so without some customizations, you wouldn't be able to limit or disable the form. The datepicker is a standard component of the jQuery UI Library, so there are some settings to set a minimum date. You would have to add those to your theme header file or page template.

    http://jqueryui.com/demos/datepicker/#min-max

    You could always use a standard drop down field with the age ranges. If they're under 18, use conditional logic and HTML field to display a message, hide the other form fields and then disable the submit button.

    We have a contact form built on a similar concept that you can refer to. http://www.rocketgenius.com/contact/

    The only way you can prevent duplicate submissions now it to require unique values for certain fields. For example, you can set the email field so it rejects duplicates. If that email has already been used, it will reject it.

    screenshot

    I hope that helps point you in the right direction. If you do need some custom work done, we would be happy to recommend some great developers with lots of Gravity Forms experience.

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  3. gryan
    Member

    Thank you Kevin! This was very helpful! Would it be possible that we may see the date picker (age restriction) in a forthcoming gravity forms upgrade? We conduct many contests and it would be great to have that feature built-in if possible. Appreciate your time.

    Posted 14 years ago on Tuesday November 9, 2010 | Permalink
  4. I'm happy that helped. We do plan on incorporating some of the available datepicker settings in the UI for a future version. It's already on the list so we'll fit it in when we can. We've been hammering away at a lot of the bigger, more requested features but do have a lot of smaller things we try to slip in as we go along.

    Posted 14 years ago on Wednesday November 10, 2010 | Permalink