I am trying to build a filter / search page within my app and have hit a block. I have seen there is a few different threads on this subject within the forum but I’m not having any luck replicating within my app and the way I want to filter my data is also slightly different.
How my database is set up:
I have a data type ‘User Trip’. Under within this data type, the user trip can contain a Type (data type Type) and list of Colours (data type Colour) per below:
The User trip can have a list of colours, but can only have one Type.
I have manually added the colours and types in my database per below:
The user Trip also contains a destination (text field) and dates (to and from)
What I want to achieve:
On my filter page, I have a RG which lists all user trips. I want to be able to filter by Destination via an input form, which I did manage to get working using a fuzzy search plugin, but I also need to filter by dates and using checkboxes in an advanced filter like below:
Users should be able to select as many of the checkboxes necessary.
What I have set up so far:
I have set up custom states on the parent group of the RG which I understand is the best approach as I may need to also add additional filters in future.
I am having issues setting up the workflows on the checkboxes, more specifically, adding the values for the custom states in my workflows.
I am also unable to filter the RG applicable to my custom states, despite trying several different ways.
If anyone is able to point me in the right direction, or even let me know if what I am trying to do is achievable it would be much appreciated.