TOPIC:

Calculate Age... 3 weeks 2 days ago #245251

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9789
  • Karma: 167
  • Thanks: 785
@Tihana

Can you please import the form and post an example how a test can be made? In principle the data being entered needs to be in the past.

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

Calculate Age... 3 weeks 2 days ago #245264

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

I disable future dates.

File Attachment:

File Name: age_disabl...tes1.zip
File Size:15 KB


@jvkeller
If you want to disable future dates:
go to your form->Advanced->More options->Form pieces->Before Form->check Custom, and put this:
echo '<script type="text/javascript">
		JQuery(document).ready(function () {
					
			JQuery("#ff_elem6831_calendarButton").pickadate({
				format: "dd/mm/yyyy", 
				selectYears: 100,
                                max: true,
                                min: false,
				selectMonths: true,
				editable: true,
				firstDay: 1,
				onSet: function() {JQuery("#ff_elem6831").val(this.get("value"));}
			});
                    });
	</script>';
Please replace #ff_elem6831 with ID of your calendar (right click to your browser->inspect).

Regards,
Tihana
Attachments:
The following user(s) said Thank You: jvkeller

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

Moderators: ForumSupport
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

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!