Forums › Forums › Search & Filter Pro › Max values for radio buttons and range slider too high
- This topic has 9 replies, 2 voices, and was last updated 5 years, 6 months ago by Trevor.
-
Anonymous(Private) April 11, 2019 at 9:11 am #208143
Hi,
I have a form which is using ACF values to generate radio button and range slider inputs, as well as a number of other inputs. Most are displaying correctly, but I am experiencing the following problems:
• On one set of radio buttons – which is a list of numbers – the final value is too high. One higher than any meta value in the database. Checking this option, of course, returns no results.
• On one range slider – which is range of decimal values, e.g. 0.42 – 0.66 – the final value is too high by 0.01. I.e. it is showing as 0.67 when the highest value in the database is 0.66. Again, this will return no results if the slider is set to 0.67 – 0.67.Both of the above fields are getting their max values automatically.
Do you have any idea why this is happening? It is currently affecting a production website so I would like to resolve it as soon as possible.
Anonymous(Private) April 30, 2019 at 3:51 pm #209696Hi Trevor,
I agree with that logic, given the erroneous value is 0.01 too high.
Yes, seems like the true max value is getting incorrectly rounded or incremented somewhere.
Please let me know if you discover the cause of this issue. We can work around it by adding an explicit maximum value, but that is not ideal as it has the capacity to override a higher value set in the content.
Thanks,
Will -
AuthorPosts