• Resolved fernandoxlv

    (@fernandoxlv)


    Hi! Congratulations on the excellent plugin!

    I created 3 Radio Buttons and assigned values to the 4 possible choices (0,1,2,3). I created a Calculated Field. I created 2 Instruction. Text to display a message as per the Calculated Field result. How do I make the Instruct message. Text only appear after the user fills in the 3 Radio Buttons? That is, I don’t want the result to appear with the partial sum of the Radio Buttons values.

    Thank you very much.

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

    (@codepeople)

    Hello @fernandoxlv

    I’m sorry, but I don’t understand what you mean.

    If you have three radio buttons fields, fieldname1, fieldname2, and fieldname3, whose choices’ values are numbers. To calculate their sum, the equation in the settings of the calculated field is:

    fieldname1+fieldname2+fieldname3

    or

    SUM(fieldname1, fieldname2, fieldname3)

    If you want to use the calculated field as an auxiliary field to display the “Instruct. Text” field when the three radio buttons fields are ticked. You can implement the equation as follows:

    IF(fieldname1,1,0)+IF(fieldname2,1,0)+IF(fieldname3,1,0)

    And then, in the settings of the calculated field, you can define a dependency to display the “Instruct. Text” field if the equation’s result is equal to 3.

    More information about dependencies by reading the following blog post:

    https://cff.dwbooster.com/blog/2020/03/01/dependencies

    Best regards.

    Thread Starter fernandoxlv

    (@fernandoxlv)

    Thanks for the answer. Sorry for not making myself understood.

    I meant the following:

    The result appears to the user before he finishes answering all the questions. See the link: https://staging-falesaude.kinsta.cloud/sintomas-de-depressao/

    Plugin Author codepeople

    (@codepeople)

    Hello @fernandoxlv

    You have two alternatives:

    * You can define the dependencies with a calculated field. I described it in the previous entry.

    * Or you can create multiple levels.

    – Insert a DIV field and configure it as dependent on the first radio buttons field.

    – Insert a second DIV field into the previous one, and configure it as dependent on the choices in the second radio buttons field.

    – Finally, move the “Instruct. Text” field into the nested DIV field, and configure the “Instruct. Text” field as dependent on the choices in the third radio buttons field.

    Best regards.

    Thread Starter fernandoxlv

    (@fernandoxlv)

    Sorry, it didn’t work!

    I used “IF(fieldname1,1,0)+IF(fieldname2,1,0)+IF(fieldname3,1,0)” in Set Equation

    Is it possible to display the result of a calculation only after the user clicks on a “calculate” button?

    Plugin Author codepeople

    (@codepeople)

    Hello @fernandoxlv

    Please, remove the dependencies, and enter the class name hide-strong through the “Add CSS Layout Keywords” attribute in the settings of the “Instruct. Text” field. And then, insert a button in the form with the following piece of code as its on-click event:

    jQuery('.hide-strong').removeClass('hide-strong');

    Best regards.

    Thread Starter fernandoxlv

    (@fernandoxlv)

    It worked perfect!

    Thank you very much! You are too much!

    Congratulations on the support

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

The topic ‘Do not show partial sum’ is closed to new replies.