• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Mar 23, 2020 Mar 23, 2020

Copy link to clipboard

Copied

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?

TOPICS
Acrobat SDK and JavaScript

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

Copy link to clipboard

Copied

What kind of fields are you using?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2020 Mar 23, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines