TOPIC:

to query the age 9 months 2 weeks ago #237877

  • Topic Author
  • info@muenswebit.de
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 0
Hello,

i already query the age of of students.
Now i would like to have that If the student is under 18 years old, another page must be displayed where the parents address have to insert otherwise not.

Is that possible and how can i solve that?

Regards and Thanks for help!

Frank

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

to query the age 9 months 2 weeks ago #237888

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
HI,

This can be done but it depends on your Form setup ofc.
For example check this article on how to jump to different URL based on select list :

crosstec.org/en/support/online-documenta...o-different-url.html
crosstec.org/en/support/online-documenta...other-form-page.html

Hope this helps.

Regardws,
Mario

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

to query the age 7 months 2 weeks ago #238538

  • Topic Author
  • info@muenswebit.de
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 0
Hi and thanks for reply,

but I think I was wrong. I would like to query the age in the form. Depending on the result the field should be displayed where he has to insert the name and address of his parents or not.

Regards Frank

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

to query the age 7 months 2 weeks ago #238539

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

You can achieve what you want using JavaScript visibility rules.

Here it is explained how they work crosstec.org/en/support/online-documenta...s-in-javascript.html .

Let me know whether you have managed to set this for your form.

Regards,

Mihaela

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

to query the age 7 months 2 weeks ago #238544

  • Topic Author
  • info@muenswebit.de
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 0
Hello Mihalea,

thanks for your reply but i do not get it.
I have got a form with 6 pages.
On the second page the student has indicates his age.
On the third page the student has to fill dependent on his age some other fields. If he is 18 years old than he do not have to fill it.

So there must be a validation of age like here:

$.validator.addMethod('checkbirth', function(value, element) {
var birthdate = element.value.split(".");
var day = birthdate[0];
var month = birthdate[1];
var year = birthdate[2];
var age = 18;
var mydate = new Date();
mydate.setFullYear(year, month-1, day)
var currdate = new Date();
currdate.setFullYear(currdate.getFullYear() - age)
return (currdate - mydate < 0 ? false : true);
});

Regards Frank

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

to query the age 7 months 1 week ago #238574

  • Topic Author
  • info@muenswebit.de
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 0
Is there anybody who can give me an advice?

Regards Frank

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.053 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!