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

Flow Button Bar - Increase maximum number of buttons #1472

Open
RealEvanPonter opened this issue Oct 27, 2023 · 2 comments
Open

Flow Button Bar - Increase maximum number of buttons #1472

RealEvanPonter opened this issue Oct 27, 2023 · 2 comments

Comments

@RealEvanPonter
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I'd like to create a Net Promoter Score question on a flow screen with selectable options 0-10 (i.e. 11 options). Vertical radio choices consume a lot of real estate. I realized that the "Selection" mode of Flow Button Bar achieves the desired experience, but currently Flow Button Bar is limited to 5 buttons per component. This is a hard-coded limit on line 172 of fsc_flowButtonBarCPE.js. I propose removing this limit entirely or updating the hardcoded limit to at least 12 (I'm not sure how many buttons could be supported in a horizontal layout if long labels are used).

Describe the solution you'd like
Allow for unlimited (or at least 12) buttons to be configured in a single Flow Button Bar component

Describe alternatives you've considered
I've manually adjusted this limit in my client's org, but fear the change will be overwritten if anyone updates the package in the future

Additional context
There is currently no standard screen component that allows for a horizontal display of selectable choices. Updating this hardcoded limit would allow for a really easy win to facilitate NPS, CSAT, Likert Scale, and other common survey question input formats.

Example desired configuration for an NPS Score question:
image

Example experience for the end user:
gifmaker_me

@alexed1
Copy link
Owner

alexed1 commented Nov 14, 2023

Hi, Evan! So you've tested it out with the higher number and it seems to be ok? It feels like a low risk thing to change....

@RealEvanPonter
Copy link
Contributor Author

Yes, more than 5 buttons functions as expected. I have a screen full of 12 button questions working great.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants