TOPIC:

Date Validation 1 week 3 days ago #243361

  • Topic Author
  • mrperfectpz
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 141
  • Thanks: 0
Hoping someone can help me please.

I have a responsive calendar plus 2 select lists for Hours and Minutes. I am guessing I need to add this information together in another hidden element (FutureDate) so I chan check against the current date and time.

If FutureDate is more than 48 hours then 'message'
If FutureDate is less than 12 hours the 'message'

if FutureDate sits between then turn on sections etc

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

Date Validation 1 week 3 days ago #243362

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9076
  • Karma: 167
  • Thanks: 737
Hi,

do you need this as validation or just displaying a message somewhere (ex. alert)?

Regards,
Markus

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

Date Validation 1 week 3 days ago #243365

  • Topic Author
  • mrperfectpz
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 141
  • Thanks: 0
I need to display a message saying its more than 48 hours away or less than 12 hours away. But if between then turn on sections

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

Date Validation 1 week 3 days ago #243367

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9076
  • Karma: 167
  • Thanks: 737
Ok, can you please post the definitions of both dropdowns here? (please use the code tag and add it inside)
Then I know the actual possible values and can see how to perform the calculations.

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

Date Validation 1 week 3 days ago #243378

  • Topic Author
  • mrperfectpz
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 141
  • Thanks: 0
Sorry I dont know what you mean by definitions

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

Date Validation 1 week 3 days ago #243380

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9076
  • Karma: 167
  • Thanks: 737
A select list definition is made in the form
0;Display Value;submit value

I assume you created those select lists / dropdowns already, so I'd like to see their definitions.

Regards,
Markus

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

Time to create page: 0.050 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

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!