• Resolved digiblogger

    (@digiblogger)


    Hi,
    another question.

    Lets say I have 5 calculated field fieldname1 – fieldname5

    Can I output text like

    you still need “fieldname1_value” “fieldname2_label” or “fieldname2_value” “fieldname2_label” or “fieldname3_value” “fieldname3_label” or “fieldname4_value” “fieldname4_label” or “fieldname5_value” “fieldname5_label”

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @digiblogger,

    If you are talking about show this texts in the form, the solution would be very similar to the previous ticket.

    Each field know its label, so, you can use the label text directly in the equation. The process would be as follows:

    – Insert a “HTML Content” field in the form, with a code similar to the following one as its content:

    
    You still need <span class="result-here"></span>
    

    And every equation (associated to the corresponding calculated field) would be similar to:

    
    (function(){
    var result;
    /** HERE THE CODE THAT GENERATES THE RESULT EX: result=fieldname1+fieldname2; **/
    jQuery('.result-here').html('the label of the field '+result);
    return result;
    })()
    

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Output calculated field values in HTML box’ is closed to new replies.