Use Pro Forms data in the node editor

Hello,

I want to use Pro forms data in the node editor but I can’t find a way to access the data.
For instance I want to use the value of a select field to calculate with in a JavaScript node. Or use a check box value in a branch node. Or fill variables.

There is not much documentation (at this moment) for the node editor. So I don’t know if there is any syntax I can use to do this.

I hope someone can help, cause I really like the potential of the node editor.

Hey :slight_smile:

Check this video:

You can use form events to capture changes in fields and store the data in a desired variable.

With this variable, you can then work across all workflows. :slightly_smiling_face:

Wow, thanks Daniele. This will help a lot.

regards, Ton

1 Like

Hello Daniele,

I have tried your solution, and it works.
But I’m building an app that has a lot of form fields with a default choice (Value).
The values of these fields are not accessible in this way.
The work around is to make the users fill out every field.

I hope that in a future update form field values are directly assignable to variables.

Thank you.

As workaround, you could use the javascript syntax to set your variables:

The value can be retrieved with document.querySelector("[name='your-form-field']").value; for example.

Hello Daniele,

This is not a workaround, this is a solution! Thank you.

I had already tried the getElementsByID() and getElementsByName() methods, but they dit not work.

Thank again.

1 Like