How do I set an object in a 'set value'?

I want a custom product checkout with 1 product. I want to set it in a value in the server action, so I don’t need to put it in a database and query it (overkill).

However I can’t seem to save the value… it keeps resetting to blank:

It looks like you are trying to save a JSON array in the set value. I don’t think the UI supports it, which is why you keep seeing empty value field.
You will have to go into the editor view for setting this.

In the editor view JSON, set the value part as a JSON array and it should work.

Objects need to be enclosed in {{}} so try


This man…
Demystifying Wappler post by post… :raised_hands:

1 Like