• Resolved PB

    (@ohtusabes)


    Hi codepeople2,

    I have a question about inserting a value from a calculated field (CFF) into a second form. Let me explain:

    I am working on a form where users can input values and submit the form. Upon submission, a popup appears with two buttons: “Cerrar” (Close) and “It a otros datos”. When the “Ir a otros datos” option is selected, it should redirect to a second form that includes some of the fieldname and values entered in the first form (such as “Paciente (apellido y nombre)”). Is it possible to pass some of these values to the second form?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    Thank you very much for using our plugin. If you want to populate fields in form B with the information submitted by form A, you need to insert the shortcode for results on the same page where the form B shortcode is inserted as described in the following section of the plugin documentation:

    https://cff.dwbooster.com/documentation#populate-form-b-with-a

    However, the shortcode for results is supported by the commercial plugin versions only.

    Another alternative would be to include the fields’ tags as parameters in the Thank you page URL. E.g.

    https://www.yourwebsite.com/thank-you-page?param1=<%fieldname1%>&param2=<%fieldname2%>

    Then, in form B, you can insert a calculated field as an auxiliary that uses the getURLParameter operation to access the URL parameters and assign their values to the fields.

    E.g.


    (function(){
    getField(fieldname1|n).setVal(getURLParameter('param1', ''));
    getField(fieldname2|n).setVal(getURLParameter('param2', ''));
    })()

    You can hide the calculated field by ticking a checkbox in its settings.

    Learn more about the getURLParameter by reading the following section in the plugin documentation:

    https://cff.dwbooster.com/documentation#url-module

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi codepeople2

    I′ll try the url function now.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.