I’m working on a job listing app and using the Canvas template. I have a search feature that lets users filter by job name, type, industry and salary range. I used custom states for the 1st three filter options, but i’m stuck on how to set up the custom state for a numeric range.
This is what I have so far - What am I doing wrong? Thanks!!!
1. Set up the inputs both the min and max are set up as “Integers”
filter_template's salary range is your numerical range.
However, when you do filter_template's salary range is not empty, this results in a boolean value. This further formatted as a number results in a singular number (either 1 or 0).
I’d suggest using Salary is infilter_template's salary range
and leave it at that. The ‘ignore empty constraints’ will automatically take care of the case of empty value of the range.