klox7 VIP
Total posts: 914
04 Jun 2014 18:32

Until now there was always a wish to be able to add some kind of range field with posibility to filter in range. Is there any workaround with existing Cobalt features to achieve this? At the moment I need some kind of "temperature field" with values from-to. If there isn't any option will you may be concider to create such a field in the future?

Last Modified: 01 Jul 2014


klox7 VIP
Total posts: 914
05 Jun 2014 11:48

I'm also open to posibility if you can create it for a quote...


Sergey
Total posts: 13,748
05 Jun 2014 11:52

There is digits field. It has range filter.

2014-06-05_19-48-07


klox7 VIP
Total posts: 914
05 Jun 2014 12:21

Can I assign min and max value for input? And how to do input from-to? I just see one text input field in form.


pepperstreet VIP
Total posts: 3,837
05 Jun 2014 21:15

The displayed filter range is determined by the lowest/highest values in all submitted records. On submission you just enter 1 value. The limit of your value is only restricted by the number of "digits". i.e. 9, 99, 999, 9999 etc.

Currently, there is no other input restriction, nor validation. But it can be accomplished by a custom field input template, IMHO.

FYI - Some time ago, i have created this topic about min/max values and input style ;)


klox7 VIP
Total posts: 914
06 Jun 2014 06:02

pepperstreet On submission you just enter 1 value.

That's the issue for me. I need min max option in submission form so I'm still open for quotes...


klox7 VIP
Total posts: 914
08 Jun 2014 18:38

Anybody interested?


Sergey
Total posts: 13,748
09 Jun 2014 00:53

I added those parameters to field. Available with the next update.


pepperstreet VIP
Total posts: 3,837
09 Jun 2014 01:27

Sergey I added those parameters to field. Available with the next update.

+1

PS: Maybe a good idea to include input templates as well. i.e. slider

  • jQueryUI is already used in filter template. Could be an alternative default input template.
  • Apart from examples in my related topic, i found this interesting jQuery plugin: noUIslider, maybe lighter? No need for the jQueryUI lib!

klox7 VIP
Total posts: 914
09 Jun 2014 06:30

@Sergey you mean there will be from-to options in input form?


Sergey
Total posts: 13,748
09 Jun 2014 11:33

there will bee max min value parameters in field parameters.


klox7 VIP
Total posts: 914
20 Jun 2014 06:59

With todays release this should be possible. But how to enter 2 values (range) in submission form? All in one input?


Sergey
Total posts: 13,748
20 Jun 2014 08:19

In submit form you enter only one value. For example price. ANd then based on all values min and max created in filter.


klox7 VIP
Total posts: 914
20 Jun 2014 09:53

I thought we are talking (in this topic) about entering 2 values in submision form :). So min value input and max value input and then filter will give you results from anything in between.

So I still need this developed and I'm asking again if anybody will do it for a quote? I need it urgently!


pepperstreet VIP
Total posts: 3,837
20 Jun 2014 17:16

klox7 I thought we are talking (in this topic) about entering 2 values in submision form :). So min value input and max value input and then filter will give you results from anything in between.

Confused. What type of data are your values? I understand, you want to input and store a value range... in one field. But for what purpose? And how would you compare different records with different ranges in advanced search?


klox7 VIP
Total posts: 914
20 Jun 2014 19:43

Specific example. I'm doing a site about aquaristic and there are different organisms to display. One of the parameter for organisms is pH value which has to be filterable. One organism can have a range of pH value, let's say from 4,9pH to 5,7pH (so 4,9 and 5,7 and all values in between).

Idea is to have 2 inputs, min and max value. Everything in between has to be done automatically. So in submission form you insert min and max value and save. When you look at record you get 4,9-5,7pH as result.

When you filter there are also 2 inputs or range slider. You choose values.

If you choose:
5,0-5,2 it display this result
4,1-7,3 it also display result
5,8-6,7 it does not display result

I think it could be done with 2 select fields and with custom filter template but I don't know php so well to be able to do this.

Any suggestions would be apreciated.


Sergey
Total posts: 13,748
23 Jun 2014 05:40

Then you can create to digit fields. One for minimum and one for maximum. And you will have to range fliter like Select Minimum Ph fron 3-4 and maximum from 5-6.


klox7 VIP
Total posts: 914
23 Jun 2014 06:20

Sergey And you will have to range fliter like Select Minimum Ph fron 3-4 and maximum from 5-6.

I don't get it how this will work. What about if range is bigger, for ex. from 3,9-7,5 (users don't know what the values are). And I think having 2 range filters will be confusing for users. Can I somehow merge two digits fields just for filter so that I have only one filter?


Sergey
Total posts: 13,748
23 Jun 2014 07:40

klox7 Can I somehow merge two digits fields just for filter so that I have only one filter?

not possible even with custom coding. Only if you create custom field that allow eneter ranges.


klox7 VIP
Total posts: 914
24 Jun 2014 08:43

@pepperstreet you could also use such a field for "opening hours" for example.


pepperstreet VIP
Total posts: 3,837
24 Jun 2014 17:08

klox7 @pepperstreet you could also use such a field for "opening hours" for example.

I got the idea, thanks. ;-)

I guess, it is not a big problem to input and store such values. It could be just the 2 min/max values, or even the calculated range of all values. In either way, you will get a multi-value field.

I see an issue on the filter part. Because you want to search a "range" in a huge amount of other ranges. This gives many comparisons and possible end-results. No idea how to solve it.

Replay Topic
Uploading
Click here to upload and insert file from you hard drive: (png, gif, jpg, jpeg, zip, txt, rar)
Powered by Cobalt