Hi everyone,
Jarosław created a threat in which he points out that <buttons> elements are no longer rendered if they are used in an item list data row column.:
https://community.webcon.com/forum/thread/5247
I tested the most common/likely elements and to verify which are supported by using this SQL query:
select
'<a>a tag</a>' + '<br/>'+
'<button>button tag</button>' + '<br/>'+
'<div>div tag</div>' + '<br/>'+
'<i class=''ms-Icon--EditContact ms-Icon'' title=''In Bearbeitung''></i>' + '<br/>'+
'<img>img tag</img>' + '<br/>'+
'<input>input tag</input>' + '<br/>'+
'<p>p tag</p>' + '<br/>'+
'<span>span tag</span>' + '<br/>'+
'<strong>strong tag</strong>' + '<br/>'+
'<style>.class'+char(123)+'display:none'+ char(125)+'</style>' +
'<p>nested styles tag'+
'<div>div tag'+
'<button>button tag</button>'+
'<strong>strong tag</strong>'+
'</div><br/></p>' + '<br/>'
as test
Supported are:
a
div
i
img
p
span
strong
Not supported are:
button
input
style
Elements which are not supported are rendered as text. This also applies if the elements are nested. There's probably sanitization applied before rendering the result.
Affected fields are:
1) Data table
2) Data row
3) Item list column: Data row
You can make use of the below SQL commands to check whether you are using one of the listed unsupported types.
select APP_Name as [Application], DEF_Name as Process, WFCON_Prompt Field, WFCON_SelectOrCaml
from WFConfigurations
join WFDefinitions on WFCON_DEFID = DEF_ID
join WFApplications on DEF_APPID = APP_ID
where WFCON_FieldTypeID in (select TypeId from DicWFFieldTypes where EnglishName in ('Data row','Data table'))
and (
WFCON_SelectOrCaml like '%style>%' or WFCON_SelectOrCaml like '%style >%'
or WFCON_SelectOrCaml like '%button>%' or WFCON_SelectOrCaml like '%button >%'
or WFCON_SelectOrCaml like '%input>%' or WFCON_SelectOrCaml like '%input >%'
)
select APP_Name as [Application], DEF_Name as Process, WFCON_Prompt ItemList, FDD_Name ColumnName, DCN_SelectOrCaml
from WFDetailConfigs
join WFFieldDetailDefinitions on FDD_ID = DCN_FDDID
join WFConfigurations on DCN_WFCONID = WFCON_ID
join WFDefinitions on WFCON_DEFID = DEF_ID
join WFApplications on DEF_APPID = APP_ID
where DCN_FieldDetailTypeID = (select TypeId from DicFieldDetailTypes where EnglishName = 'Data row')
and (
DCN_SelectOrCaml like '%style>%' or DCN_SelectOrCaml like '%style >%'
or DCN_SelectOrCaml like '%button>%' or DCN_SelectOrCaml like '%button >%'
or DCN_SelectOrCaml like '%input>%' or DCN_SelectOrCaml like '%input >%'
)
If you really want to make sure, remove the where condition targeting the SelectOrCaml column, copy the result to notepad++ and replace < with line break <. This way you will have all tags at the start of each line.
Best regards,
Daniel