• Resolved mads

    (@madstudio)


    Hello codepeople,

    How can i load the session id in a form? And how can i send a value (Session id) in the next form?

    Thank you.

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

    (@codepeople)

    Hello,

    If you want to use session variables in the forms, you can use the shortcode to create a javascript variable in the webpage with the information in the session variable, more information in the following link:

    http://cff.dwbooster.com/documentation#javascript-variables

    However, if you want use in a form, the data submitted by another form, you can follow the instructions below:

    I’ll assume in this explanation that the values of fields: fieldname1, and fieldname2, in the form A would be assigned to the fields: fieldname23, and fieldname45 in the form B after submit the form A(the names of fields are hypotheticals, only to explain the process)

    1. Enter as the “Thank you page” associated to the form A, the URL to the webpage where will be inserted the form B.

    2. In the thank you page of the form A insert the shortcode of the form B, and the following piece of code, to populate the fields in the form B:

    [CP_CALCULATED_FIELDS_RESULT]
    <SCRIPT>
    cpcff_default = { 1 : {} };
    cpcff_default[1][ 'fieldname23' ] = '<%fieldname1_value%>';
    cpcff_default[1][ 'fieldname45' ] = '<%fieldname2_value%>';
    </SCRIPT>
    [/CP_CALCULATED_FIELDS_RESULT]

    More information in the following link:

    http://cff.dwbooster.com/documentation#populate-form

    Best regards.

    Thread Starter mads

    (@madstudio)

    Thank you. Thank you. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘sessionid’ is closed to new replies.