I’m trying to do a search for something when the user clicks on a button : it has to search for something depending on the choices of the user.
On my page, the user can choose different options, each one is stored inside custom states.
So when he clicks I need to do something like :
SELECT FROM mytable WHERE col1 = custom_state_1 AND col2 = custom_state_2
Then I need to store it inside another custom state.
Is it possible ?
When I try to set the custom state to the result of the “do a search for”, the problem is I can’t add any custom state in the constraint.
Does is mean I’ll have to store the user answer inside the user table for example ? Because I saw that I can insert user related fields in the constraint ?