Using multiple combobox primitive to populate a separate section with a form pill group #2461
-
Hi team! So I know we have the simple multiselect combobox example in where the form pill group populates directly underneath. But I was wondering if there were any guides in using multiple combobox primitive in order to populate a separate section with a form pill group? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @samarthpuri! It looks like you're wanting a selection in the "Base message" Combobox trigger form pills to populate within the "Template" Textarea. How would the different base, optional, and custom messages show up in the Textarea? Would users be able to add more field text within the Textarea? Would users be able to add field text between form pills? Could you also share a link to your Figma file? It would be great to hear more about the user flow and use cases for this modal to bring back to the team. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @loreina! We're still in early exploration as you can tell. The Textarea is currently acting as the placeholder for the Template. The Template can only consist of content/text from the base, optional, or custom messages. The base is the only sentence that gets segmented into individual words - multiple form pills, as users tend to cut it down to avoid the message segmentation or if they use their domain (will eventually add domain to the optional list). The optional and custom messages act as complete sentences - one form pill. In the page "🔄 Service Settings SMS - v1" it goes through the flow showing how a base and optional messages are used to create a Template. |
Beta Was this translation helpful? Give feedback.
-
Hey @samarthpuri, thanks for sharing that additional context! One more question about the flow, if you don't mind: Can you share more about how you landed on the base + optional + custom message options to generate the template? Do you need to keep the template content pretty locked down, or is there room to give the user more flexibility in writing their own content? One approach to template creation that comes to mind is what we do in SendGrid, where we teach the user how to use the handlebar syntax, and then leave it up to them to write the email template using that syntax, like so: |
Beta Was this translation helpful? Give feedback.
Hey @samarthpuri, thanks for sharing that additional context! One more question about the flow, if you don't mind:
Can you share more about how you landed on the base + optional + custom message options to generate the template? Do you need to keep the template content pretty locked down, or is there room to give the user more flexibility in writing their own content?
One approach to template creation that comes to mind is what we do in SendGrid, where we teach the user how to use the handlebar syntax, and then leave it up to them to write the email template using that syntax, like so:
The user then writes their email template freeform and can reference these tags as needed. I'm not sure…