Form blocks are listening to a special event called update-fields.
When block is loaded block-loaded event is triggered after which one can set form field values in name, value pairs and trigger update-fields event.
Thank you very much for this code which works perfectly well. Do you have the event that a form waits for to fill in the options of a dropdown field? This would allow pre-filling the options via a script
Hmm, this isn’t working for me. I confirmed the event is getting dispatched, and I changed the name of the form to the name I have in the interface, but the text in the text-box isn’t actually updating. Just to check - the ‘detail’ attributes are the names of the different fields in the form, correct?