LightningFlowComponents
LightningFlowComponents copied to clipboard
Flow Button Bar - Increase maximum number of buttons
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:
Example experience for the end user: