Support » Plugin: Calculated Fields Form » Formatting summary

  • 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.

    Thank you. Can’t seem to get it to work – see http://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.

    Hah, had to be me! Thanks again.

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