• Resolved PB

    (@ohtusabes)


    Hi @codepeople,

    Is there any possibility to set a text in the calculated field? For example, when I select a radio button that a calculated field will be displayed showing a custom text.

    Thanks

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

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

    (@codepeople)

    Hello @ohtusabes

    Yes, that’s possible. However, as the calculated fields use input tags, for long texts you should use the calculated field as an auxiliary field and display the result in another field.

    For example, assuming you have the equation fieldname1+fieldname2, but you want to display the result with the format:

    Hello user, you entered the values X and Y, and their sum is Z

    Assuming the calculated field is the fieldname3, you can insert an “HTML Content” field in the form and enter a tag in its content similar to:

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

    The data-cff-field attribute tells the plugin you want to use the fieldname3 value as the tag content.

    Second, edit the equation as follows:

    CONCATENATE('Hello user, you entered the values', fieldname1, ' and ', fieldname2, ' and their sum is , fieldname1+fieldname2)

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

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople,

    I′ll try and tell you what happens.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.