bolt-js
bolt-js copied to clipboard
How to document `optional` field from housing Block and how it applies to Block Elements within?
Currently multi_external_select (link), requires you to select at least one option, otherwise, it fails the validation.
We worked around that by providing a default option none and people can remove it and add the options related to the content they are filling in.
However, it would be a better UX if the field is optional.
This is a feature request for the Block Kit select menus themselves, yes? Perhaps adding a required, or min_selected_items, field to enable this behaviour?
Yes, specifically for the one retrieving options externally.
Both suggestions sound good to me.
I have raised this internally with the relevant engineering team. As I hear updates, I will report them back here.
This change will improve the UX drastically. Thank you Filmaj!
@rinormaloku one thing to try: can you put the multi-select menu inside an Input Block and set the Input Block's optional field to true?
@leartbeqiraj1 can you try this out and report back?
I gave it a go and indeed that does work, though it wasn't until a fellow Slack colleague pointed this out to me that I realized this was even an option! Something to improve in our documentation.. will need to think about how to tackle that.
I just tested it and I can verify that it works. Thanks a lot @filmaj and @rinormaloku
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
I'm reopening this as this is still outstanding to improve in our documentation.