Hi All,
Can anyone let me know how to highlight the sentence in, if else statement while using targetdata to fetch the value from the custom schema.
I have added the screenshot for the reference.
In this above code i need to bold the values in targetdata.para1
Thanks
Hariprasanth
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
Hi @Haricharan ,
Go to source tab in delivery, and add <strong> before the start of targetData JS and </strong> after the targetData JS.
<strong><%=targetData.para %></strong>
The HTML <strong> tag is used semantically to emphasize importance, conveying meaning to both sighted and screen readers. In contrast, the <b> tag is solely for visual presentation, making text bold without conveying significance.
In Delivery HTML tab, you can see B icon. when you select this to make a text as bold, it will generate <strong><strong/> in source tab.
조회 수
답글
좋아요 수
Hi @Haricharan ,
Please try below
<%if(targetData.header=="") {%>
<b><%=targetData.para %></b>
<%}
else
{ %>
<%=targetData.para2 %>
<%}%>
Regards,
Pravallika.
조회 수
답글
좋아요 수
Hi @Haricharan ,
Go to source tab in delivery, and add <strong> before the start of targetData JS and </strong> after the targetData JS.
<strong><%=targetData.para %></strong>
The HTML <strong> tag is used semantically to emphasize importance, conveying meaning to both sighted and screen readers. In contrast, the <b> tag is solely for visual presentation, making text bold without conveying significance.
In Delivery HTML tab, you can see B icon. when you select this to make a text as bold, it will generate <strong><strong/> in source tab.
조회 수
답글
좋아요 수
Hi @Haricharan,
Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!
조회 수
답글
좋아요 수