Form Help

TOPIC:

disable some days on calendar form 1 year 3 months ago #262040

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3265
  • Karma: 2
  • Thanks: 160
Hi,


try like this:
    { from: [2021,6,14], to: [2021,6,27] }
  ],

Insert the date which you want!

Let me know the result!

Regards,
Mirko
Attachments:

Please Log in or Create an account to join the conversation.

disable some days on calendar form 1 year 3 months ago #262041

  • Topic Author
  • Martinelli
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
Hy...

i've to add your code after the other one, right?
L.

es:
echo '<script type="text/javascript">
JQuery(document).ready(function () {

JQuery("#ff_elem780_calendarButton").pickadate({
format: "dd-mm-yyyy",
selectYears: 1,
disable: [7],
selectMonths: true,
editable: true,
firstDay: 1,
onSet: function() {JQuery("#ff_elem780").val(this.get("value"));}
});

});
</script>

echo '<script type="text/javascript">

JQuery(document).ready(function () {

JQuery("#ff_elem780_calendarButton").pickadate({
format: "mm-dd-yyyy",
selectMonths: true,
firstDay: 1,
disable: [ [2,7,2021]] ,
onSet: function() {JQuery("#ff_elem780").val(this.get("value"));}
});
});
</script>';<style>
.picker__day--disabled{
background-color: red !important;
}
</style>

Please Log in or Create an account to join the conversation.

Last edit: Post by Martinelli.

disable some days on calendar form 1 year 3 months ago #262042

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3265
  • Karma: 2
  • Thanks: 160
Hi,

no, you can only change line of code where is 'disabled'

insert this
echo '<script type="text/javascript">
JQuery(document).ready(function () {

JQuery("#ff_elem780_calendarButton").pickadate({
format: "dd-mm-yyyy",
selectYears: 1,
disable: [7],
selectMonths: true,
editable: true,
firstDay: 1,
onSet: function() {JQuery("#ff_elem780").val(this.get("value"));}
});

});
</script>

disable: [7], -> instead this, insert this
disable:  { from: [14,6,2021], to: [27,6,2021] }
  ],


adjust date which you want.

it should be like this:
echo '<script type="text/javascript">
JQuery(document).ready(function () {

JQuery("#ff_elem780_calendarButton").pickadate({
format: "dd-mm-yyyy",
selectYears: 1,
disable:  { from: [14,6,2021], to: [27,6,2021] }
  ],
selectMonths: true,
editable: true,
firstDay: 1,
onSet: function() {JQuery("#ff_elem780").val(this.get("value"));}
});

});
</script>

Disabled days from [14,6,2021], to : [27,6,2021] .

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Last edit: Post by Mirec.

disable some days on calendar form 1 year 3 months ago #262043

  • Topic Author
  • Martinelli
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
ok, it works !!!
www.farmaciapapagno.it/tampone-antigenic...d-19-farmacia-latina

thanks a lot for your help :)

Luca


ps: I translated the calendar into Italian...
I attach the file it.js (/components/com_breezingforms/libraries/jquery/pickadate/translations/)
I don't know if it can be useful, maybe you can insert it in the next update

File Attachment:

File Name: it.zip
File Size:0 KB
Attachments:

Please Log in or Create an account to join the conversation.

disable some days on calendar form 1 year 3 months ago #262045

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3265
  • Karma: 2
  • Thanks: 160
Hi,

super! :)
Thank you for sharing the solution with the community.
If you need more help, feel free to ask!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.103 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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!