Skip to main content
Nintex Community Menu Bar
Solved

HTML code in the Search filter

  • June 1, 2021
  • 2 replies
  • 10 views

squaladesign

Hi, I created a ListView and I added a <br> in the column header so I can have the header in 2 rows.

Attached the info.

It's perfect in the table but now in the search field I can see the <br> that I don't want.

How can I have the header column in 2 rows without using <br>? or How can I remove the <br> from the search?

 

Best answer by velRaj1

You can write custom script to replace "<br>" to ""

 

<script>$("li > a > span").text(function () { return $(this).text().replace("<br>", "").replace("<br>", ""); });</script>

2 replies

  • Answer
  • June 1, 2021

You can write custom script to replace "<br>" to ""

 

<script>$("li > a > span").text(function () { return $(this).text().replace("<br>", "").replace("<br>", ""); });</script>


squaladesign

Great, it's working. Thanks