TOPIC:

Age calc and condition to list or text field 3 days 1 hour ago #252812

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi!

The following is intended:

There are 9 fields with name and age (9 family members)

There is a read only list field with "elderly members?" Yes no

If 1 or more family members are over 65 years of age then the "elderly members?" shows "yes"

Or

The are 2 text fields, one Yes other No and a visibility rule shows Yes or No depending If 1 or more family members are over 65 years of age.

Tx in advance

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

Age calc and condition to list or text field 2 days 23 hours ago #252816

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi!

I think I can help but I don't know how to write the code.

We created 9 variables "Old1", "Old2" and so on, up to 9.

We do a calculation on the age minus today in each "Age".

If age equal to or greater than 65 "Old1" = 1, and so on, up to 9

Then we sum all the 9 "OldX".

If the sum is equal to or greater than 1, it turn the "elderly members" listfield = Yes

Or

Shows the "elderly members yes" textfield.

Thanx in advance

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

Last edit: Post by Luisserafim.

Age calc and condition to list or text field 2 days 10 hours ago #252835

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

please post here an example for this, that I can write the code in your form :)

Regards,
Tihana

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

Age calc and condition to list or text field 2 days 9 hours ago #252839

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

9 Inputs for age = age for 9 people.

Calculation on "Age" minus today in each "Age".

Old = 65 years or more.

Result in field "Old People?" = 1 or 2 or 3 old guys.

Please help.

Thanx in advance
Attachments:

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

Last edit: Post by Luisserafim.

Age calc and condition to list or text field 2 days 8 hours ago #252842

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

here is.

File Attachment:

File Name: exampleLuis_date.zip
File Size:21 KB

But the problem is that we can't use actionscript on calendar, only validation.

Please test it, when you click on submit, number of old people is populated.

Hope this helps

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

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

Age calc and condition to list or text field 2 days 7 hours ago #252844

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

Almost there.

The date of birth cannot be greater than "now".

We can have a family with less than 9 elements, so filling the "Age" field is not mandatory.

Thanx in advance

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

Time to create page: 0.044 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!