Hi,
I have a form where depending on the age I would need a parent to fill out more information.
I would like it if I could hide the parent section if they are over 18yrs old and show it if they are under 18. I have tried this:
( [age] is_not "" ) and ([age] is<"18"). What is the proper way to write this?? Is this even possible in WFB?
Thanks,
Marilyn
I have a form where depending on the age I would need a parent to fill out more information.
I would like it if I could hide the parent section if they are over 18yrs old and show it if they are under 18. I have tried this:
( [age] is_not "" ) and ([age] is<"18"). What is the proper way to write this?? Is this even possible in WFB?
Thanks,
Marilyn
Hiya Marilyn,
Are you making the age a text or number box? If so try using a drop down and add the ages to the list so they can be chosen. Then when you make it do "age is not (fill in age here)" you will be able to create a rule for each age you do not want the information to show on. If you are only going to count up to age 18 then it would just be a rule for that one number. If you plan to go over 18 and maybe up to 25 or something, then include each of those ages in the "is not" setup.
Another even easier way (depending on if there are multiple children involved in which this way wouldn't work so well) is to just ask the parent something like:
Is the child under the age of 18?
[ ] Yes [ ] No
And then just tell it to show it if it IS Yes.
Hope that helps
Hope that helps
Are you making the age a text or number box? If so try using a drop down and add the ages to the list so they can be chosen. Then when you make it do "age is not (fill in age here)" you will be able to create a rule for each age you do not want the information to show on. If you are only going to count up to age 18 then it would just be a rule for that one number. If you plan to go over 18 and maybe up to 25 or something, then include each of those ages in the "is not" setup.
Another even easier way (depending on if there are multiple children involved in which this way wouldn't work so well) is to just ask the parent something like:
Is the child under the age of 18?
[ ] Yes [ ] No
And then just tell it to show it if it IS Yes.
Hope that helps

Hope that helps

Hi,
Thanks for the reply....great idea. It is for music/vocal classes and the ages can range from possibly 3 to 100 yrs old lol. So from what I can see doing it the way you suggested...at a minimum I would have to do it 14 times. I was hoping for an easier way using greater then, less then expressions (smile).
Thanks for the reply....great idea. It is for music/vocal classes and the ages can range from possibly 3 to 100 yrs old lol. So from what I can see doing it the way you suggested...at a minimum I would have to do it 14 times. I was hoping for an easier way using greater then, less then expressions (smile).
Yeah I would suggest the Yes No situation then and add the rule so that it only shows if they choose Yes that their child is under 18. That would be pretty sufficient, and have the box for filling in the age show up after they fill that in instead of before. Just some more food for thought

Yea, thought of that... But the person wanting this form did not like the idea of asking for the age and then asking if they were over 18 too lol. They even have a date of birth question. So giving your dob and then age and then asking if they are over 18 ...that is a bit much lol.
You could apply what Jo Ann suggests if you make the dob selectable in a dropdown list, or at least such a list for the birth year. Then you could add the rules to the year 1996 and all the later years. The downside is, that this would have to be adjusted every year, 'release' 1996 and start the rule one year later, and add another year at the top of the list etc...
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Yeah that is the other reason that I suggested to just use the Yes No checkbox for asking if the child is under age 18. This way it doesn't matter what year anything is, make the checkbox, Label it as:
Is the child you are enrolling(or whatever the situation is) under the age of 18?
[_] Yes [_] No
Then uses the Conditionals and highlight the elements you want to show only when under age 18 and add the conditional for each of the elements:
If: ageunder18
Operator: Is
Value: Yes
That should keep it very simple. Put the Age box for them to fill in the actual age "after" the conditionals so that if they ARE 18 or older they will fill that age box in right off the bat once they answer NO. If they are Under 18 they will get the conditional questions and the age box will show up after them. You could even tie the Age text box to the conditionals as well and that way you could have it be right after the Yes / No question for both situations. Very simple setup this way.
Is the child you are enrolling(or whatever the situation is) under the age of 18?
[_] Yes [_] No
Then uses the Conditionals and highlight the elements you want to show only when under age 18 and add the conditional for each of the elements:
If: ageunder18
Operator: Is
Value: Yes
That should keep it very simple. Put the Age box for them to fill in the actual age "after" the conditionals so that if they ARE 18 or older they will fill that age box in right off the bat once they answer NO. If they are Under 18 they will get the conditional questions and the age box will show up after them. You could even tie the Age text box to the conditionals as well and that way you could have it be right after the Yes / No question for both situations. Very simple setup this way.
Marilyn you were on the right track, you only need the two conditions under 18 or if you think of it 18 or over. So as it is one or the other use radio boxes each identified by an appropriate label. Then messages or other elements can be triggered by which radio button is selected.
If you have trouble with the logic I will adjust it for you I have a contact form here http://cms.inkmon.org/concept.html Form is at the bottom of the page. Once you have my email you can send the form files. Leave out the settings for your privacy
But as I said you are on the right track and what you sus out yourself will be a lesson well learnt .
If you have trouble with the logic I will adjust it for you I have a contact form here http://cms.inkmon.org/concept.html Form is at the bottom of the page. Once you have my email you can send the form files. Leave out the settings for your privacy
But as I said you are on the right track and what you sus out yourself will be a lesson well learnt .
The Guy from OZ
I filled out your form Prism but did not get a response or anything with an email address.
Thanks much
Thanks much
Ok so I said check boxes rather than Radio buttons lol, same thing though Prism as what I mention above. Setting up the conditionals based on their answer to the question. Radio buttons would work better and I should have said that, my bad

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.