I have a List & Search Type form that has only one input field called Username. I have set it to Exact matching, so it only returns back results if an exact match is found.
But if the Username field is empty and I hit enter, it returns with all the results, whereas it should not get back anything as the field is empty.
I have tried most of the other options in Match+Stage and Conditional States options, but I still get back all results on empty search as well. I want it to not return anything if the Username input field is empty.
Hey, thanks for your reply. I just set the input field Default value in the Live+Live Value section to a single space, and saved it. But when I open the form it doesn't show the space in the input field, and when I hit enter I still get all the values.
(I'm sry is that what you meant that I should try?)
I did this- UserName2 is enabled if UserName isEmpty AND UserName2 is disabled if UserName isFilled
What happens is, the first time the page loads, UserName2 has some default val and that stops the empty UserName from getting submitted(and does not show any results, which is correct). But once I put a value for UserName and values are displayed, UserName2 becomes empty and then it never has a value again even if UserName is empty (and then again all rows are displayed).
Sry but I used quite a few different permutations of that and even those didnt work.
Maybe apply live value to username2 instead of default value.
Sometimes I use rokpad to allow me to enter text without surrounding <p> getting added. I then assign values by using freetext field with defaultvalue as “1” etc
If I wanted people to only search exact terms from db i.e he users exact name then I would use select dynamic and maybe have search button disabled bu having it as disabled if field is empty (and having tick so that opposite enables it) and have live value as some dummy value...