How to start embedded form after camForm variables-fetched event?

Hello, i want to get camunda’s variables from camForm.variableManager and then start my form but cam-form starts after my form. Can i do this without timer?

Hi,

I’m not sure if I understood your question correctly, but have you tried

camForm.on('variables-fetched', function() {
  // handle variables fetched
});

(related docs here: https://docs.camunda.org/manual/7.12/reference/embedded-forms/lifecycle/)

I use React in embedded forms. My react application starts before scripts with the cam-script attribute start. I want to get variables before my react app starts or when my react app just starts.