• Resolved blue

    (@life2)


    Hi, How to use superscript in the symbol to show at the end of calculated field (e.g. for the two in ft2)?

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

    (@codepeople)

    Hello @life2

    You cannot include superscript into input tags because the input tags do not render HTML code.

    In this case, you can use the calculate field as an auxiliary but display the results into another field like an “HTML Content” field.

    For example, assuming you have the equation: fieldname1*fieldname2

    Insert an “HTML Content” field in the form with a div tag like <div class="result-here"></div> where display the result.

    Edit the equation as follows:

    
    (function(){
    var result = fieldname1*fieldname2;
    jQuery('.result-here').html(result+'ft<sup>2</sup>');
    return result;
    })()
    

    Finally, since the calculated field is used as an auxiliary, you can hide it by ticking a checkbox in its settings.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘about displaying symbol at end of calculated field’ is closed to new replies.