How do you pass values between steps on a multistep form?

I have a multistep form with checkboxes in the first step while in the second step I have to retrieve the value of the checkbox and pass it as a metakey to a query. How do you pass values between steps? I tried with {brf_form_live_value:071e51} but it doesn’t work!

You can’t do that. The query is created on your server, while your form runs on the client. The server doesn’t know anything about your form at all :slight_smile:

If you need something like this, it’s better to create two separate forms on different pages. Submit the first one and redirect the user, along with the relevant data as query parameters, to the second form.

Then, you can use the query parameters to build your query.

Well I can do it by sending the parameters of the query in ajax to the server… Does the Node Editor have functionality to start an AJAX event and invoke a function from the server? anyway I didn’t understand how to pass the data between one step and another. Do I have to store them in a variable with the node editor?

In general, you can pass data between steps using live variables. Example: {{your-form-field-variable}}. Those variables can be used everywhere in your form, even in field “Value” controls.

And yes, the Node Editor has a “Ajax Request” node. This node could run on a form change event and fill in specific fields with new data coming from the server. But this would be more advanced stuff with custom coding required. To use two separate forms to include data from the server would be the easier way :slight_smile:

1 Like

Excuse me, Daniele, is that what you mean? It doesn’t work…

it’s print this value in console:
<input type="text" id="form-field-9e2a4f" name="form-field-18e553" spellcheck="false" data-label="Label" autocomplete="off" value="{{testvariabile}}" data-brf-step="1" data-original-content="{{testvariabile}}">

You don`t need the Node Editor to share data between form fields. Pro Forms will do this automatically for you. Just pass your variable (this means the ID of your form field you want to pass the data to another field) to the “Value” control of your form field.

If you want to use the Node Editor because you want to change the data on specific events, there is a dedicated “Populate Form Field” node you can use to update form fields with speciic data.

oh ok thanks

Have patience daniele, but I can’t get to the bottom of it, can you be clearer on which strip I have to use to print this value you see in the photo? I’ve tried various ways but while that directive works to print values in the frontend, it doesn’t show up if I put it in the value field of the input of the next step. If I solve this crucial knot, I am on horseback.

Instead of your “brf_form_live_value” stuff, enter just: {{071e51}} If there is a form field with this ID, the value will be picked and refeshed.

That tried, but nothing. The id I entered is of the radio wrapper. When I render the page it appears
<input type="text" id="form-field-3c5397" name="form-field-18e553" spellcheck="false" data-label="Label" autocomplete="off" value="{{071e51}}" data-brf-step="2" data-original-content="{{071e51}}">

Hmm.. what if you change the value of your radio field? Does it work then?
Also, could you try it with a text field instead of a radio field and see if that works?

it’s works with input fields…so it’s a radio wrapper issue…

Hello Daniel, nearly 2 months have passed since I reported this bug, and it doesn’t seem to have been addressed yet. I must be honest—I’m quite disappointed and frustrated. I cannot depend on a product that allows bugs to persist for this long. This issue is blocking my work. If this isn’t resolved promptly, I will have to request a refund.