• Resolved supersvetodiod

    (@supersvetodiod)


    Hello!
    There is a calculated field (field1).
    After calculations, it gives the value (field1=3).
    The number 3 remains in the field after calculations, but I still need a text to appear under field1 based on the calculated value: (You need to buy 3 tiles)
    How can it be implemented?

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

    (@codepeople)

    Hello @supersvetodiod

    Thank you very much for using our plugin.

    I’ll try to describe the process with a hypothetical example. Assuming the current equation is fieldname2+fieldname3. To display the result in the calculated field and into a text below the “calculated field”:

    1. Insert an “HTML Content” field in the form with a DIV tag as its content where display the text: <div class="text-here"></div>

    2. Now, edit the equation as follows:

    (function(){
    var result = fieldname2+fieldname3;
    
    jQuery('.text-here').html('You need to buy '+result+' tiles');
    
    return result;
    })()

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Text on calculations’ is closed to new replies.