Adding variables within a text area #4296
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Hi! For adding variables to a text area with a dropdown appearing when you type a specific character (like "@" for names), Paste recommends using the Combobox Primitive. This approach allows for more control and customization, which seems to align with your need for functionality similar to the Studio example of adding liquid variables with "{{". The Combobox Primitive can be customized to trigger a dropdown with options based on the input. It's also important to ensure that the implementation is accessible, allowing screen reader users to understand that a list of options is being presented and to navigate through or between the options. Here's a snippet from the documentation suggesting the use of the Combobox Primitive for similar use cases: "With your desired functionality of needing to customize the text area and dropdown, we suggest that you try using the Combobox Primitive to have more control for what you need." For more details on implementing the Combobox Primitive and ensuring accessibility, you can visit the Paste documentation: Combobox Primitive Please give the Combobox Primitive a try, and if you have any questions or need further assistance, feel free to ask! I also did a search, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hi @elangager3, unfortunately we do not have that functionality available for TextArea. We do have another component, ChatComposer which has the ability to create custom plugins to format text. For example we have a plugin built in that checks for a URL format and provides link highlighting. You can also create you're own custom plugins to check for specific syntax. This would be the best option to experiment with. While we have not created many custom plugins our end I'm happy to help your engineers with anything they run into. |
Beta Was this translation helpful? Give feedback.
Hi @elangager3, unfortunately we do not have that functionality available for TextArea. We do have another component, ChatComposer which has the ability to create custom plugins to format text. For example we have a plugin built in that checks for a URL format and provides link highlighting. You can also create you're own custom plugins to check for specific syntax. This would be the best option to experiment with. While we have not created many custom plugins our end I'm happy to help your engineers with anything they run into.