Problem on responsiv calendar

  • jps0302
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

jps0302 created the topic: Problem on responsiv calendar

Hello

I'm building a form for a sports association and I'm having a problem with a form that is a recruiter of players, coaches and leaders.
Here is the address of the form: football.cabeglais.fr/contac...damier-beglais

My problem:
The champion Date of birth type "responsive calendar" birth limit in 1989 and capped at 2049 (which is not very consistent for a date of birth).
To choose a year <to 1989, you must first click on 1989 to obtain the previous 30 years.
How to set this champion to go in December 1989 and during the year?

PS:
I specify what I do this champion by positioning a type "calendar", I do not encounter the problem ...

Thank you for your help
#238257
  • Posts: 2726
  • Karma: 93
  • Thank you received: 369

mihaela replied the topic: Problem on responsiv calendar

Hello,

To set the responsive calendar as you want go to form's Advanced properties tab > More options > Form Pieces > Before Form, set Type to Custom and paste this code in the code area below:
echo '<script type="text/javascript">
                                        
    JQuery(document).ready(function () {
                             
        JQuery("#ff_elem11156_calendarButton").pickadate({
			format: "dd-mm-yyyy", 
                       selectYears: 101, 
			min: [1920,1,1], max: [2030,12,31],
                        selectMonths: true,
                        editable: true,
                        firstDay: 1,
			onSet: function() {JQuery("#ff_elem11156").val(this.get("value"));}
		});
        });
</script>';
NOTE: You'll have to insert the correct ID of the responsive calendar in the following 2 lines (in my case the ID is ff_elem11156).
JQuery("#ff_elem11156_calendarButton").pickadate({
onSet: function() {JQuery("#ff_elem11156").val(this.get("value"));}
You can set min and max date to whatever suits you here:
min: [1920,1,1], max: [2030,12,31],

Let me know whether you have managed to set this for your form and whether this works as you wanted.
If you have more questions, feel free to ask.

Regards,

Mihaela
#238273
  • jps0302
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

jps0302 replied the topic: Problem on responsiv calendar

Hi

Where is The ID of the responsive calendar ?

Thank you

Best regards
#238275
  • jps0302
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

jps0302 replied the topic: Problem on responsiv calendar

Hi
I have found the id.
I'm going to check
Thank's
#238276
  • jps0302
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

jps0302 replied the topic: Problem on responsiv calendar

Hello
I just tested.
It's perfect
thank you
#238277
  • Posts: 2726
  • Karma: 93
  • Thank you received: 369

mihaela replied the topic: Problem on responsiv calendar

Hello again,

Great! I'm glad that you have managed to find the ID and that the suggested solution is working for you.

Best regards,

Mihaela
#238280
Moderators: ForumSupporttomeperica
Time to create page: 0.072 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here