Form Help

TOPIC:

disable some days on calendar form 1 month 3 weeks ago #262003

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50
Hi,

super!
Let me know the result! :)

Reegards,
Mirko

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

disable some days on calendar form 1 month 3 weeks ago #262014

  • Topic Author
  • Martinelli
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
no, i've no message on send :(

name of calendar element: data
i've put this code:

function ff_data_validation(element, message)
{
var my_date = new Date(element.value);
if( my_date.getDate() == 1 && my_date.getMonth() == 7){
ff_validationFocus(element.name);
return 'Siamo in ferie dal 1 al 15 Agosto. Perfavore scegli un'altra data.;
}
return '';
} // ff_data_validation

Es: www.farmaciapapagno.it/tampone-antigenic...d-19-farmacia-latina

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

disable some days on calendar form 1 month 3 weeks ago #262016

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6901
  • Karma: 3
  • Thanks: 492
Hi,

Your example will show error message only if someone select 1.8.

You should to add it for more dates

E.g. for 1.8 and 2.8 this part of code should be like:
if( (my_date.getDate() == 1 && my_date.getMonth() == 7) || (my_date.getDate() == 2 && my_date.getMonth() == 7)   ){
When you click submit button error message appears

Let me know if you need more help or test link from my previous message with responsive calendar

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

disable some days on calendar form 1 month 3 weeks ago #262035

  • Topic Author
  • Martinelli
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
hy,

I think it's better to try the responsive one to avoid the user selecting the wrong days without submitting the form.
i will let you know shortly
Luca

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

Last edit: Post by Martinelli.

disable some days on calendar form 1 month 3 weeks ago #262038

  • Topic Author
  • Martinelli
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
ok, i've set the responsive calendar and disabled Sundays. It works!

www.farmaciapapagno.it/tampone-antigenic...d-19-farmacia-latina

How can I disable the dates between August 1 and 15?

Thanks inadvance,

Luca

ps: I created the file for the translation of the calendar in talian ( en.js ) ...
if it can be useful I can attach it and you can insert it in the next updates ;)

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

Last edit: Post by Martinelli.

disable some days on calendar form 1 month 3 weeks ago #262039

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 942
  • Karma: 2
  • Thanks: 50
Hi,

ok, let us the result!

I sent you example in attached file, please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).


Regards,
Mirko
Attachments:

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

Moderators: ForumSupport
Time to create page: 0.057 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!