Skip to main content
Participant
March 23, 2020
Question

How to create 'preferred choice' or 'ranking' in form

  • March 23, 2020
  • 3 replies
  • 1846 views

Have created a form but stuck on one part where there are a number of choices to a question and the user needs to be able to show their preferred choice. There will be 8 choices in total and the user will need to select their first and second choice, a simple 1 and 2 will suffice, but I don't want users to be able to repeat values. Previously a ranking wasn't required and the form used checkboxes, but it now needs to be more specific, is there a script that can be applied here?

This topic has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
March 24, 2020

You could use a list box, where each choice is an entry and arrow buttons are used to move the entries up and down to show ranking order. This is also a nice visual clue for everyone, since the items are listed in order. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
August 29, 2022

How do you do this? I've looked all through Properties and haven't found the arrow option to enable ranking of a list.

try67
Community Expert
Community Expert
August 31, 2022

This is not a built-in feature. It requires using a custom-made script to modify the location of the selected item(s) in the list-box when the buttons are clicked.

try67
Community Expert
Community Expert
March 23, 2020

And what are the names of the fields in each group? If the options are only 1 or 2 I would recommend using drop-downs.

try67
Community Expert
Community Expert
March 23, 2020

What kind of fields are you using?

Participant
March 23, 2020

Previous version used checkboxes, I assumed this time it could be a text field where the user would enter 1 or 2 rather than say a drop down menu, it's just ensuring that the user can only choose two options. Thanks