Skip to Content Skip to Menu

[SOLVED] Create range field

9 years 9 months ago - 9 years 9 months ago #257557 by ks.stadler
[SOLVED] Create range field was created by ks.stadler
Is it possible to create a range field? So I mean one label with two select boxes or something like this:

"years": [here are values from 1970-2015] to [another select box with values from 1970-2015]

Now the users choses "1975" and "2006" than the value of the field in the profile is...

Years: 1975-2006

How can I do that?
Last edit: 9 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 9 months ago #257589 by krileon
Replied by krileon on topic Create range field
Create 2 fields then use a Custom HTML field to substitute them together. Other than that, no it's not possible to do ranges like that as a single field. Please see the below for substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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.
The following user(s) said Thank You: ks.stadler

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

9 years 9 months ago #257744 by ks.stadler
Replied by ks.stadler on topic Create range field
Thanks for your help. I have connected 2 fields with the substitute method

[cb:if cb_year_from!="" && cb_year_to!=""]
[cb_year_from] - [cb_year_to]
[/cb:if]

This is a good way ;)

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

Moderators: beatnantkrileon
Powered by Kunena Forum