Can you share the JSON that you're getting when you save the block, and a copy showing what you expect to get?
Rachel,Thank you for taking the time to respond. I really do appreciate your time.
So I did study the field-dependent-dropdown plugin (although not using it currently).
I have been working on this awhile and did it before that was published.
I'll look at it again.
So....
When I save the workspace the JSON file contains the values that the dropdown's create. The language-independent values.
So, (I think) that when the system tries to load them to the workspace or DOM, it doesn't understand the values but might be looking for the labels or text (Human readable?).
Here's the JSON text:
{"blocks":{"languageVersion":0,"blocks":[{"type":"run_forever_loop","id":"QPGz4%tVurf2`(sZEFQr","x":50,"y":50,"inputs":{"loop":{"block":{"type":"gadget_get","id":"v9lj7t?;tV6a2ov2hK;v","extraState":{"firstDropdownValue":"P4 + c@ temperature"},"fields":{"FIRST_DROPDOWN":"P4 + c@ temperature","SECOND_DROPDOWN":"0"},"next":{"block":{"type":"gadget_get","id":"]-[~ZSP}7`Vt8e81R9y*","extraState":{"firstDropdownValue":"P1 + c@ button"},"fields":{"FIRST_DROPDOWN":"P1 + c@ button","SECOND_DROPDOWN":"3"},"next":{"block":{"type":"gadget_get","id":"$T.zsGs.[Aypi`f,LeG~","extraState":{"firstDropdownValue":"P2 + c@ button"},"fields":{"FIRST_DROPDOWN":"P2 + c@ button","SECOND_DROPDOWN":"1"},"next":{"block":{"type":"gadget_get","id":"KsHt]9gk?/dnp8,v}ACD","extraState":{"firstDropdownValue":"P3 + c@ lightlevel"},"fields":{"FIRST_DROPDOWN":"P3 + c@ lightlevel","SECOND_DROPDOWN":"1"}}}}}}}}}}}]}}
I'm experimenting with "extrastate" parameters to see if there is any joy there.
As you may see, the FIRST_DROPDOWN value is the "code" that I want generated, not the "text" that is in the FIRST_DROPDOWN. So when it reloads (In my elementary thinking) it doesn't restore the dropdown text.
I wish I could explain it better :(
If you should want to look at the actual project (I think it's the current iteration):
Most of the blockly workspace gets restored on load, however the dynamically generated dependent dropdown do not.
Thanks so much for your interest.
Frank