Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ranking] Option to override default placeholder text #7357

Closed
GER-Jani opened this issue Nov 15, 2023 · 3 comments
Closed

[Ranking] Option to override default placeholder text #7357

GER-Jani opened this issue Nov 15, 2023 · 3 comments
Assignees
Labels
Milestone

Comments

@GER-Jani
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Feature

What is the current behavior?

There is no option to adapt placeholder text ("Drag and drop choices here to rank them")

What is the expected behavior?

A field in the SurveyJS designer or accepted property in JSON format to override the default placeholder text (e. g. override to "Drag and drop intuitively")

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/published?id=d7dc829d-2128-474d-89fd-92081c5453e2

Test code

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "ranking",
     "name": "question1",
     "title": "How would you deal with situation xyz?",
     "description": "I would most likely deal with situation xyz as follows ...",
     "hideNumber": true,
     "isRequired": true,
     "choices": [
      {
       "value": "Item 1",
       "text": "This is a very long description to deal with situation xyz in case of A."
      },
      {
       "value": "Item 2",
       "text": "This is a very long description to deal with situation xyz in case of B."
      },
      {
       "value": "Item 3",
       "text": "This is a very long description to deal with situation xyz in case of C."
      },
      {
       "value": "Item 4",
       "text": "Another very long description to deal with situation xyz in case of D."
      }
     ],
     "selectToRankEnabled": true,
     "selectToRankAreasLayout": "vertical"
    }
   ]
  }
 ]
}

Specify your

  • browser: Google Chrome
  • browser version: Version 119.0.6045.124
  • surveyjs platform (angular or react or jquery or knockout or vue): Website
  • surveyjs version: Current
@andrewtelnov
Copy link
Member

andrewtelnov commented Nov 21, 2023

@GER-Jani Please use "selectToRankEmptyUnrankedAreaText" and "selectToRankEmptyRankedAreaText" properties to setup these strings.

UPDATED: They are not serialized. You have to set them in the code.

Thank you,
Andrew

@andrewtelnov
Copy link
Member

@RomanTsukanov please add documentation for these properties. We missed them.
@dmitrykurmanov We need to make them serializable.

Thank you,
Andrew

@RomanTsukanov
Copy link
Contributor

RomanTsukanov commented Nov 22, 2023

I've added descriptions for these properties to the documenation: 541d992. As for Survey Creator, I think it's time to create a category for "select to rank"-related properties.

@dmitry-kurmanov dmitry-kurmanov added the user issue An issue or bug reported by users label Dec 4, 2023
dmitry-kurmanov added a commit that referenced this issue Dec 4, 2023
dmitry-kurmanov added a commit that referenced this issue Dec 4, 2023
dmitry-kurmanov added a commit that referenced this issue Dec 4, 2023
dmitry-kurmanov added a commit that referenced this issue Dec 4, 2023
@dmitry-kurmanov dmitry-kurmanov added this to the v1.9.120 milestone Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants