Hi community,
I want to use a confirm dialog to get user confirmation before executing a certain function. As the function has strong consequences when executed, I write a lot of text in the confirm dialog to let people know about the affected items and some passive aggressive warnings to ensure people think twice before clicking "ok".
But the current confirm dialog only allows us to write plain text and we only have limited options to highlight certain aspects of the text.
Does anyone know if there is a way to get custom html into the ArasModules.Dialog.confirm dialog? I mainly want to do some basic text highlighting (bold text and coloring of important content).
I made various dialog tests and noticed that standard "alerts" allow us to use html with custom styling inside the text.
This is how the similar message would look like in the confirm dialog. Note that is just will show the plain html.
Compared to the confirm dialog the alerts doesn´t allow much customization regarding custom buttons and actions. So using an alert doesn´t fit the use case.
I have checked the codetree. Confirm and Alert use the similar code basis and styling. Both confirm and alert seem to sanitize the message to prevent the injection of harmful code. But "confirm" seems to be a bit more thorough at this task.
Of course I could use a custom dialog as replacement for the OOTB confirm. But I wonder if there is simple way to enhance the standard confirm dialog to support some basic styling?
Does anyone know more? Thanks for any hint!
Angela