Skip to main content
Participant
Mar 23, 2020 8:57 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

Thom Parker
Community Expert
Community Expert
Mar 24, 2020 12:57 AM UTC

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. 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
Aug 29, 2022 3:40 PM UTC

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

Translate
try67
Community Expert
Community Expert
Aug 31, 2022 9:31 AM UTC

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.

Translate
try67
Community Expert
Community Expert
Mar 23, 2020 10:33 PM UTC

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.

Translate
try67
Community Expert
Community Expert
Mar 23, 2020 10:08 PM UTC

What kind of fields are you using?

Translate
Participant
Mar 23, 2020 10:20 PM UTC

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

Translate