I have a condition on a search that is optional. Essentially a list of categories that you can select one of, that filters a list. You can reset the filter by selecting the selected category, so it is back to how it it when it loads (all categories).
Is there any way to reset a Custom State ? What I have done is create an field on User that is an empty category, and the set the state to this.
No, I tried that. It will allow an empty value, but doesn’t reset the state. I pulled the state out onto the page to see it working and it remained the same.
If you leave the Value field in the Set State action blank, it doesn’t change the state to null, it stays as it was.
Not a huge problem, as can create some nulls on the User and use them. But maybe not working as intended, happy to send an email to support if required.
You can set the default value of the state on page load (or with any other condition), thus leaving the default value field empty. That way you can work with it the way described above.