Home > Forum > Processes > Dynamic generation of HTML code using data row field type no longer working in version 2023.1.3.202

Dynamic generation of HTML code using data row field type no longer working in version 2023.1.3.202
0

We use in one of our applications the option to generate HTML code (for example extra buttons performing some actions) in list item lines. For this purpose, data row field type was working well. For example such code:

SELECT '<span style="margin:2px;"><button onclick="startAccessRequest( ''{SI:3201}'' );" style="font-weight:bold; color:green; font-size:12px; text-align:center;">&#x2795;</button></span><span style="margin:2px;"><button onclick="startAccessRemoval( ''{SI:3201}'' );" style="font-weight:bold; color:red; font-size:12px; text-align:center;">&#x2796;</button></span>' AS XX

Generated two nice buttons with + and - that performed some actions.

With the current version 2023.1.3.202 WEBCON adds extra " signs, so the entire code is quoted and displayed as text and not intepreted as HTML

I would appreciate any idea how to solve the issue

In reply to: Jarosław Kommisarczyk

Unfortunately, using calculated text column is not a solution. The result is the same - the content is quoted insted of being presented as is. See the screenshot presenting DOM elements

Unfortunately, I don't have this exact version so I can't test it, (on my version it still works) but it's very strange that these " characters are added after <span> and before <button> tag :/ (in the middle of the code).

have you tried the same code without <span> tags or maybe a hyperlink <a> with an image will work...

MVP
In reply to: Jacek Wojnar

Unfortunately, I don't have this exact version so I can't test it, (on my version it still works) but it's very strange that these " characters are added after <span> and before <button> tag :/ (in the middle of the code).

have you tried the same code without <span> tags or maybe a hyperlink <a> with an image will work...

Hi,

it seems as that a sanitization check has been added.
I was abled to use strong but a simple img, button, span tag didn't work. An a tag can also be used.

Every supported tag is outputted as text. I'm quite sure that I don't like this as I'm sure that we are using this option for other means too.

@Jarosław
Did you already opened a support ticket?

Best regards,
Daniel