I thought I was going mad, but confirmed this is a bug in plasmic. Or maybe its just a quirk beyond my knowledge.
First, form input field’s state variable are not available as on change interactions.
I thought to bypass this easily with on change → run code
My purpose is to reset select and text input, so I thought $state.targetSelect.value=null would be suffice.
It only works when field-key are not set both in the onChange trigger field and target field, if any one of them is set, the code does not work.
But a form without field-key doesn’t work …
Here’s the blank test form structure
I tried $state.form.field-key.value = null, which only change the backend variable, not the GUI
Is there any workaround?