Announcements
hi, in Dynamics Portal I have HMTL in metadata label ( Red bold font).
I have also put placeholder for the whole label <span class="ABC">label text</span>
I created a site settings with the new value for the label I need (call it ABCnew)
In liquid I have a script that calls for the <span placeholder and replaces it with site settings value ABCnew.
The problem is when I run the script it does not render my <span class="ABC">label text</span> placeholder because I have inside label text more html (for red bold font).
<script>
Hi,
Please try adding the below code to your page, it worked on my side.
<span id="myText">Sample Test</span>
<script>
$('#myText').text("Sample Test Updated");
</script>
In a similar manner, you can set the dynamic value in your Span element.
Hope this helps!
Thanks.
André Arnaud de Cal...
293,411
Super User 2025 Season 1
Martin Dráb
232,552
Most Valuable Professional
nmaenpaa
101,158
Moderator