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)
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?
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.