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.

Minimum Age?

  1. Hi
    I have a form where people registers to volunteer but they must be 18 and over.

    Right now I'm using the number field and putting the min range to 18 but it says: Please enter a value greater than or equal to 18. I don't want that text.

    Is there any way to use the Date field to have a minimum age thing?

    Posted 7 years ago on Monday March 11, 2013 | Permalink
  2. David Peralty
    Administrator

    No, the way you are doing it is correct. You would have to custom code something to parse the user selected date, or come up with JavaScript to limit the calendar to allowed values only. Either solution would be outside of forum support, and in the real of coding customization.

    Posted 7 years ago on Monday March 11, 2013 | Permalink
  3. I see. Thanks.

    Is there any way to delete the text "Please enter a value greater than or equal to 18" ?

    Posted 7 years ago on Monday March 11, 2013 | Permalink
  4. David Peralty
    Administrator

    Do you want any error? You can change it using the Validation Message under advanced on the field. If you don't want it to say anything, you can just add a space into the field.

    Posted 7 years ago on Monday March 11, 2013 | Permalink
  5. To hide the description where it tells the visitor what sort of number they need to enter (your "Please enter a value greater than or equal to 18" text) you can add this to one of your theme's stylesheets:

    [css]
    body .gform_wrapper #field_315_1 div.instruction {
     display: none;
    }

    Change 315 to your form ID and 1 to your field ID. You can view the source of the page with your form on it to get those IDs if you need them, or you can find them in the form builder as well. If you have trouble with it, please provide a link to your form.

    Posted 7 years ago on Monday March 11, 2013 | Permalink
  6. I did it. it didn't remove it.

    form: http://www.meff.ifew.com/participate/volunteer/paid-volunteer/
    pass (removed)

    Posted 7 years ago on Wednesday March 13, 2013 | Permalink
  7. Screenshot: http://minus.com/lbizQdge9i6Ber

    This is the CSS I added to one of your theme's stylesheets:

    [css]
    body .gform_wrapper li#field_10_39 .gfield_description {
    	display: none;
    }
    Posted 7 years ago on Thursday March 14, 2013 | Permalink
  8. Perfect!! Thank you!

    Posted 7 years ago on Thursday March 14, 2013 | Permalink
  9. You're welcome. Glad that worked for you.

    Posted 7 years ago on Thursday March 14, 2013 | Permalink

This topic has been resolved and has been closed to new replies.