• Resolved PB

    (@ohtusabes)


    Hi @codepeople

    I have a calculated field that outputs text strings, but I’ve noticed the text gets cut off when it exceeds the field size, even after selecting the largest available size. Is there a way to fix this?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    In this case, the recommended solution is to use the calculated field as an auxiliary to calculate the result but display it in another component.

    Please insert an “HTML Content” field in the form and enter a div tag as its content with the data-cff-field attribute indicating the field’s name whose value you want to display in the tag.

    <div data-cff-field="fieldname54"></div>

    Since the calculated field is used as an auxiliary, you can tick a checkbox in its settings to hide the field from the form.

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople2

    That´s great.

    Thank you so much.

    Thread Starter PB

    (@ohtusabes)

    Is it possible to maintain the same format (including the box and text) of the calculated field while ensuring the text is not cut off?

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    The calculated fields use input tags, the input tags are one-line controls, they cannot display the results in multiple lines. However, if you prefer to display the result into a multiline control, you can use a textarea field.

    For example, you can insert a textarea field in the form, I’ll call it fieldname123 and tick the “Read-only” checkbox in its settings. Finally, edit the equation in the calculated field as follows:


    (function(){
    getField(fieldname123|n).setVal(fieldname73);
    return fieldname73;
    })()

    Like in my previous post, you can hide the calculated field by ticking a checkbox in its settings.

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople2

    Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Calculated field size’ is closed to new replies.