Age Range Capture & Searchable

10 years 5 months ago #236482 by romolo
Age Range Capture & Searchable was created by romolo
Hey all,

We want to capture age on registration and allow it to be searchable.

From looking at other websites they have age range as searchable such as:
Between "22"-"30".
Both ages are separate pull downs so the user can specify an age range themselves.

i.e.
(A) user selects an age from a Dropdown menu
(B) Other users search and filter on a more than age and less than age... Like a dating site.
See the following screenshot for an example: awesomescreenshot.com/0381xmlcf7

How can we achieve this is CB while maintaining the Age capture field on registration?

Cheers

R

Please Log in to join the conversation.

10 years 5 months ago #236497 by krileon
Replied by krileon on topic Age Range Capture & Searchable
You'll need to use a date field and set it to display as age. This however is going to result in a date dropdown plus calendar popup so they can supply their birthdate. To have age range and have just a single field like that you'll need to use an Integer field as its searching lets you search between 2 integer values, but you lose the age dropdowns. Both will fit your needs quite nicely I believe so is entirely up to you which you want to use. The benefit of using a date field is it'll automatically keep up with their age as they just need to supply birthdate.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

10 years 5 months ago #236500 by romolo
Replied by romolo on topic Age Range Capture & Searchable
If we use a single integer field then how do we get the CB search to use 2 dropdowns to say greater than or less than? As this sounds like 2 fields..

Please Log in to join the conversation.

10 years 5 months ago #236518 by krileon
Replied by krileon on topic Age Range Capture & Searchable
You can't have dropdowns for the integer field searching. It will display 2 inputs that let them type whatever number range they like. I suggest using a date field with it set to age display for best usage.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.238 seconds

Facebook Twitter LinkedIn