• Resolved rosbiffer

    (@rosbiffer)


    I’d like to be able to write my summary to be displayed on the form page like:

    Hi, You invested <fieldname1> over <fieldname2> years and at the end your investment was worth <fieldname3>.

    So I don’t need a submit button or to send this anywhere – do I need a paid for version for this?

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

    (@codepeople)

    Hello @rosbiffer

    The behavior you need can be implemented with the free version of the plugin. Simply insert a “HTML Content” field in the form with a DIV tag as its content, similar to:

    <div class="summary-here"></div>

    and then, insert a calculated field in the form, and enter as its equation:

    
    (function(){
    var result = 'Hi, You invested '+fieldname1+' over '+fieldname2+' years and at the end your investment was worth '+fieldname3;
    jQuery('.summary-here').html(result);
    })()
    

    Finally, as the calculated field is being used as auxiliary, you can tick a checkbox in its settings for hiding the field from the public form.

    Best regards.

    Thread Starter rosbiffer

    (@rosbiffer)

    Thank you. Can’t seem to get it to work – see https://new.ownergroups.com/calculator-test/ you can see the code in the source but nothing is displaying

    Plugin Author codepeople

    (@codepeople)

    Hello @rosbiffer

    The issue is simple, you have forgotten a plus (+) symbol just here '+fieldname31'
    The correct is '+fieldname31+'

    Best regards.

    Thread Starter rosbiffer

    (@rosbiffer)

    Hah, had to be me! Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Formatting summary’ is closed to new replies.