TOPIC:

Content Builder - Set 2nd Calendar Based on the 1st Calendar 1 week 1 hour ago #267751

  • tyekynan's Avatar Topic Author
  • tyekynan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Karma: 1
  • Thanks: 3
I can do this in breezing forms, but I don't have the option to use breezing forms here and need to handle the form in content builder.

I have 2 calendar fields..." checkin" and "checkout".

When someone selects the date on "checkin"
I would like for "checkout" to automatically open the same month as already selected within "checkin" instead of the current month.

I would also like to set the min date on "checkin" as today's date.

How can I achieve this in content builder? I could add javascript to my page as it has its own template if that makes this easier. I am decent with javascript but not good enough to do this on my own.

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

Last edit: Post by tyekynan.

Content Builder - Set 2nd Calendar Based on the 1st Calendar 6 days 17 hours ago #267754

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

for this you can use validation in content builder, e.g. if someone in checkin select january 2022, and in checkout select december 2021 error should be here.
Here is example for validation in content builder:
crosstec.org/en/forums/37-contentbuilder...tion-php.html#227273

I will test how to do this with calendar and come back to you :)

Regards,
Tihana

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

Content Builder - Set 2nd Calendar Based on the 1st Calendar 6 days 10 hours ago #267811

  • tyekynan's Avatar Topic Author
  • tyekynan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Karma: 1
  • Thanks: 3
Yes, I see the validation script "date not before" but by only selecting it, it does nothing. I took a look at the code provided in the other post, and I don't understand how to translate that to what I need.

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

Content Builder - Set 2nd Calendar Based on the 1st Calendar 6 days 10 hours ago #267816

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

I will see what I can do ( I will test it), and come back to you :)

Regards,
Tihana

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

Content Builder - Set 2nd Calendar Based on the 1st Calendar 6 days 8 hours ago #267822

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

when I tried to combine two calendar it shows error for me.

I will let you know, when I find useful info :)

Regards,
Tihana

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

Content Builder - Set 2nd Calendar Based on the 1st Calendar 6 days 8 hours ago #267826

  • tyekynan's Avatar Topic Author
  • tyekynan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Karma: 1
  • Thanks: 3
Thank you so much! This is the last thing I need to finish up before I send it live. So sooner than later works great, but I understand you probably have several things on your plate.

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

  • Page:
  • 1
  • 2
Time to create page: 0.048 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!