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

Add refuse and don't know items into select base (checkobox, dropdown, radiogroup and tagbox) #7754

Closed
andrewtelnov opened this issue Jan 27, 2024 · 1 comment
Assignees
Labels
enhancement user issue An issue or bug reported by users
Milestone

Comments

@andrewtelnov
Copy link
Member

andrewtelnov commented Jan 27, 2024

We need an optional two more items that will work similar to none: showRefuseItem and showDonotKnowItem. These properties should be invisible by default.
To enable this functionality in Creator you will need to make this properties visible as the following:

import { Serializer } from "survey-core";

Serializer.findProperty("selectbase", "showRefuseItem").visible = true;
Serializer.findProperty("selectbase", "showDontKnowItem").visible = true;
@andrewtelnov andrewtelnov added enhancement user issue An issue or bug reported by users labels Jan 27, 2024
@andrewtelnov andrewtelnov self-assigned this Jan 27, 2024
andrewtelnov added a commit that referenced this issue Jan 29, 2024
tsv2013 pushed a commit that referenced this issue Jan 30, 2024
* Add properties into selectbase #7754

* Implement functionality for refuse and don't know items #7754

* Remove unused function #7754

* Translate refuse and dontknow strings #7754

* Add docs

---------

Co-authored-by: RomanTsukanov <[email protected]>
@andrewtelnov andrewtelnov added this to the v1.9.128 milestone Jan 30, 2024
@SamMousa
Copy link
Contributor

Really nice that this feature landed.
I'm a bit stumped that you didn't go for a generic solution that I've already proposed years ago: #4778

While a great improvement, this approach of having 1000s of options vs a few generic ones seems bad for everyone: more work for you, fewer use cases for us! Anyway, cheers for adding this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

2 participants