• Resolved frankster1234

    (@frankster1234)


    I would like a custom summary, can I do something like:

    In ($number_years) you will accumulate ($additional_debt) in additional debt on your current debt of ($current_debt).

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

    (@codepeople)

    Hi,

    Are you talking about a text in the form, or in the thank you page?

    I will try to explain the process with an example. Assuming that the fields are (for using the nomenclature of the plugin):

    $number_years the fieldname1 field.
    $additional_debt the fieldname2 field.
    $current_debt the fieldname3 field.

    If you want to display the result into the form:

    1. Insert a “HTML Content” field in the form with the piece of code below as its content:

    <div class="display-result"></div>

    2. Now, insert a “Calculated Field” that will be used as auxiliary field. As this field will be used as an auxiliary field, it is not relevant in the form’s interface, so, you should tick the checkbox: “Hide Field From Public Page” in the field’s attributes.

    3. And finally, enter as the equation associated to the calculated field in the previous step, the code below:

    (function(){
    jQuery('.display-result').html( 'In '+fieldname1+' you will accumulate '+fieldname2+' in additional debt on your current debt of '+fieldname3 );
    })()

    If you want to include the sentence in the “Thank you page” associated to the form (the summary displayed after submit the form). You simply should insert into the thank you page the shortcode:

    [CP_CALCULATED_FIELDS_RESULT]
    In <%fieldname1_value%> you will accumulate <%fieldname2_value%> in additional debt on your current debt of <%fieldname3_value%>
    [/CP_CALCULATED_FIELDS_RESULT]

    and that’s all.

    Best regards.

    Thread Starter frankster1234

    (@frankster1234)

    Thank you very much, this did what I wanted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Summary’ is closed to new replies.