Calendrier

  • Profile Image
    cedartyidf
    Asked on May 30, 2011 at 12:14 AM

    Bonjour,

    Je souhaite utiliser dans un formulaire le champs anniversaire en imposant dans le choix des années les années de 1998 à 2011.

    Comment paramétrer ce champs afin d'avoir uniquement les années désirées?

    Merci par avance de vos réponses.

  • Profile Image
    abajan
    Answered on May 30, 2011 at 01:01 AM

    Hello cedartyidf

    Hopefully I have understood your question correctly because there is always the risk of a nuance being lost in translation. However, assuming that you wish to have a Birthday Picker field display only the year, you will need to inject a CSS rule similar to the one below:

    #input_5_month, #input_5_day, #sublabel_month, #sublabel_day {
    display:none;
    }

    The "5" in "#input_5_month" and "#input_5_day" indicate that the Birthday Picker was the fifth field inserted into the form. With that in mind, you may have to substitute another number to make the code hide the inputs for the day and month.

    In Chrome, you can discover what the correct number is by going to the form's URL and right-clicking on the Birthday Picker field then clicking "Inspect element". In Firefox, Firebug accomplishes the same goal. Or if you don't know the order in which the field was inserted, you could simply try each number from "2" up until you hit the right one. (The first field is that containing the "Submit Form" button, so there's no need to try "1".)

    I trust that this wasn't too confusing. Perhaps someone fluent both French and English can convert this reply for you.

    Nevertheless, thanks for asking and please feel free to enquire more about our forms.


    ~ Wayne

  • Profile Image
    cedartyidf
    Answered on May 30, 2011 at 05:41 PM

    Merci pour votre réponse rapide

  • Profile Image
    abajan
    Answered on May 30, 2011 at 07:03 PM

    Avec plaisir, cedartyidf! :)


    ~ Wayne