Skip to main content
Participant
November 7, 2023
Answered

Create a drop down list that will send a score to a separate field.

  • November 7, 2023
  • 1 reply
  • 1580 views

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 🙂

This topic has been closed for replies.
Correct answer Nesa Nurani

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.

1 reply

Nesa Nurani
Community Expert
Community Expert
November 7, 2023

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;
Participant
November 7, 2023

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? 

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
November 7, 2023

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.