Closed RovoMe closed 4 months ago
Hi @RovoMe thanks for writing in 💯
are only PlainTextObjects supported by this GUI element?
You are correct, according to our documentation for the option object used in the static select element only the plain_text
object is supported
However if the option object is used in a radio button or checkbox then the mrkdwn
text objects are supported
Ah, thank you for this information. Didn't see the hint on that in the reference documentation
We're using Java Bolt 1.37.0 and currently trying to setup a modal that allows users to select options suggested by our internal API.
We noticed that when setting up a
StaticSelectElement
for providing some static options user can choose from before making further dynamic options based on the static selection, and providing aMarkdownTextObject
asOptionObject
Slack/Bolt doesn't seem to like that:As far as I can see,
OptionObject
can take in anyTextObject
s so aMarkdownTextObject
should be feasible, I guess. However, when executing this modal and logging the error hints I see the following log (reshaped for easier readability):when swapping
PlainTextObject
forMarkdownTextObject
, the form renders as expected.Do I miss something in regards to configuring select options when providing "formatted" Markdown text? In such a case, how should the initialization of the
OptionObject
then look like, or are onlyPlainTextObject
s supported by this GUI element?