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.
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/
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.
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?
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.
It worked perfect!
Thank you very much! You are too much!
Congratulations on the support