• Resolved kenyakoma

    (@kenyakoma)


    Hi,
    First of All, thank you so much for this great plugin. I am not much into coding but using your plugin, I am trying different sorts of things.

    I need your help

    I have set up a calculated form in which fieldname12 shows the calculation.
    I want to display a line after that which shows –

    The result of the Calculation is – “Value of fieldname12”

    How do I do that? Kindly help me out.

    Regards:

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

    (@codepeople)

    Hello @kenyakoma

    Thank you very much for using our plugin.

    You can insert an “HTML Content” field in the form and enter a tag to display the result as its content:

    The result of the Calculation is – <span class="result-here"></span>

    And then, you can edit the equation to display the information in the tag.

    For example, assuming the equation in the calculated field is fieldname1+fieldname2, you can edit it as follows:

    (function(){
    var result = fieldname1+fieldname2;
    jQuery('.result-here').html(result);
    return result;
    })()

    Best regards.

    Thread Starter kenyakoma

    (@kenyakoma)

    Thank you so much for this. Is it possible to display result using javascript?

    Plugin Author codepeople

    (@codepeople)

    Hello @kenyakoma

    You are free to access the fields values with Javascript. The calculated fields are input tags.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying Calculation Results’ is closed to new replies.