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

checkbox question - render none below other item #1531

Closed
andrewtelnov opened this issue Feb 2, 2019 · 2 comments
Closed

checkbox question - render none below other item #1531

andrewtelnov opened this issue Feb 2, 2019 · 2 comments
Labels

Comments

@andrewtelnov
Copy link
Member

Make sure that none item is rendered on the bottom. under the other item.

@theriddler
Copy link

theriddler commented Aug 4, 2022

image

I've recently started experiencing this problem again in the past 3 months (version 1.9.35), but I cannot isolate when it began happening.... Should I create a new issue for this?

note: thank you guys for your hard work, the product is quite amazing

@JaneSjs
Copy link
Contributor

JaneSjs commented Nov 14, 2023

Hello @theriddler,
Just wanted to inform you that we introduced an option to place the None item at the end of the list.
With SurveyJS v1.9.117 and newer, it is made possible to position special choice items (None, Other, Select All) above or below other choice items in select-based questions (Checkboxes, Radio Button Group, Single- and Multi-Select Dropdown).

To specify new positions for the special choices, use the specialChoicesOrder object within global survey settings. This object contains the following properties: selectAllItem, noneItem, and otherItem. Each of them accepts an array of integer numbers.

Negative numbers place a special choice item above regular choice items, positive numbers place it below them.

For instance, the code below places the None option at the end of a list: View CodeSandbox.

import { settings } from "survey-core";

settings.specialChoicesOrder.noneItem = [2];
settings.specialChoicesOrder.selectAllItem = [-1];
settings.specialChoicesOrder.otherItem = [1];

A Checkboxes question appears as follows:
image
Please feel free to test the new feature. Should you have any further questions, feel free to contact us at any time.

Thanks

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

3 participants