Copy link to clipboard
Copied
I am creating a series of drop down menus to answer several questions, the responces will be:
1, Strongly Agree
2, Agree
3, Neutral
4, Disagree
5, Strongly Disagree
I then have a text box beside this which I would have a score, which is based on the number selected in the drop down menu.
So if someone selects " 1, Strongly Agree" I would see a score of 1 in the text field beside it.
Please can anyone guide me (baby steps needed as not a coder)
Thanks 🙂
Set score points as export values of choices in dropdown.
Go to dropdown field properties, and click on 'Options' tab, under each choice where it says 'Export value' set your score.
Now click on 'Calculate' tab and as 'Custom calculation script' use this (Change "textfield" to your actual text field name):
this.getField("textfield").value = event.value;
If you mean from all score fields, go to field where you wish to show total score, under 'Calculate' tab select 'Value is the' Sum(+) and pick your fields.
Copy link to clipboard
Copied
Set score points as export values of choices in dropdown.
Go to dropdown field properties, and click on 'Options' tab, under each choice where it says 'Export value' set your score.
Now click on 'Calculate' tab and as 'Custom calculation script' use this (Change "textfield" to your actual text field name):
this.getField("textfield").value = event.value;
Copy link to clipboard
Copied
Thank you - I had the 'Export Value's already set so it was the script that did the hard work of pulling the data across.
May I ask how I could add all the scores together?
Copy link to clipboard
Copied
If you mean from all score fields, go to field where you wish to show total score, under 'Calculate' tab select 'Value is the' Sum(+) and pick your fields.
Copy link to clipboard
Copied
That is great - thank you ever so much - problem solved.
🙂
Copy link to clipboard
Copied
I am working on a similar document and have followed these steps. When I change the dorpown selection, the score in the other field doesn't change until I click on the other field. Is there a way to make it happen automatically?
Copy link to clipboard
Copied
Disregard. I just figured out that under Dropdown options I had to check the box"Commit Selected Value Immediately".