• Resolved mevabien22

    (@mevabien22)


    Show “Field Type: Calculated Field” as a:

    “Field Type: Text Area”

    I have a form in which the result is a text string and I would like it to be displayed in a “Text Area” field because it does not give space on one line.

    How can I do this?

    Thank you.

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

    (@codepeople)

    Hello @mevabien22

    You can use the calculated field as auxiliary and display the result into another field, as a “HTML Content” field.

    For example, assuming your current equation is: fieldname1+fieldname2

    1. Insert a “HTML Content” field in the form, and insert a div tag as its content where will be displayed the result, for example: <div class="result-here"></div>

    2. Modify the equation as follows:

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

    3. Finally, as the calculated field is used as auxiliary, you can hide it from the public form, ticking the corresponding checkbox in its settings.

    and that’s all.
    Best regards.

    Thread Starter mevabien22

    (@mevabien22)

    Excellent!

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculated Field” as a “Text Area”’ is closed to new replies.