Hi there,
On a survey I have three numeric fields of the same type (field A,B,C). I want the default value of the field C to be the total of A+B (C=A+.
Thank you for your response.
I tried it but it doesn't seem to work. I put the question C in another group after the other two questions A,B (on the same group) and I placed the code on the last tab of field C "Edit default answer values" but no result (0 zero is only displayed).
Well, I tried myself and it worked fine (using version 2.64.0+170307)!
Please find attached my sample survey using this "feature", maybe you can import it and have a look (if you are using this version - if not, I can also set up a sample for 2.6.4lts build 170202 if you wish).
If A or B are "Equation question type" then yes : only done in PHP, else it work on same page.
Remind : + is strange sometimes, better to use sum or join function to be sure.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Is there any way that this will also work if all these fields e.g. A,B,C will be in the same group and the survey is being displayed in one page instead of in separate?