I have an alert which gets triggered on the press of a button within a repeating panel. Within the alert is a fairly large block of text, within which I would like to emphasize, via formatting, certain words provided by the user within an input field in the main form.
I could not find any resources addressing this in the docs/forum, so hopeful someone may know if it is possible to accomplish this.
What I’ve tried and what’s not working:
Code Sample:
result = alert(content=self.item['dump_text'],
title="An important choice",
large=True)
# this is a formatted code snippet.
# paste your code between ```
Thank you. I understand how to add rich text to an alert, but where I am struggling is how to implement logic which conditionally adds bold to specific words.
If you look at the example app for input_box, the first button shows a text with bold, italic and other formatting. You can clone the app and look at the code.
If it is still not clear, please give us a little more details.