CHANGE FIRST DAY OF WEEK IN CALENDAR ELEMENT

 

Here it is explained how to make Monday the first day of week in Calendar element with date format "%Y-%m-%d"

Go to form Advance Options > More Options > Scripts > Initialization Script > Custom > Press "Create Code framework" and paste this in between :

 

Calendar.setup({
        inputField     :    "ff_elem1717", 
        ifFormat       :    "%Y-%m-%d",
        button         :    "ff_elem1717_calendarButton",
        align          :    "Bl",
        singleClick    :    true,
        firstDay: 1
    });

 

The whole code will look like this:

function ff_formName_init()
{
Calendar.setup({
        inputField     :    "ff_elem1717", 
        ifFormat       :    "%Y-%m-%d",
        button         :    "ff_elem1717_calendarButton",
        align          :    "Bl",
        singleClick    :    true,
        firstDay: 1
    });
} // ff_formName_init

 

NOTE: To make this work for your form you have to find your calendar element ID and replace ff_elem1717 with it. Also, you have to replace ff_elem1717_calendarButton with your calendarButton ID. Also, formName will be the name of your form.

The first day of week can be set to what is suitable by changing firstDay: 1 to another value.

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