Skip to main content
Solved

removal on search


Forum|alt.badge.img+1

How can i remove the dashes when someone does like "new-biking-gear". This is for search abandonment flow

Best answer by annasophiefc

Hi ​@ayomi56987 

 

Thank you for posting in the community!

 

If you want to remove the “-” and replace it with a simple space, you can use the following django syntax:

 

{{ event.SearchQuery|find_replace:”-| ” }}

 

I hope this helps!

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

annasophiefc
Partner - Platinum
Forum|alt.badge.img+23
  • 2025 Champion
  • 122 replies
  • Answer
  • April 4, 2025

Hi ​@ayomi56987 

 

Thank you for posting in the community!

 

If you want to remove the “-” and replace it with a simple space, you can use the following django syntax:

 

{{ event.SearchQuery|find_replace:”-| ” }}

 

I hope this helps!


annasophiefc
Partner - Platinum
Forum|alt.badge.img+23
  • 2025 Champion
  • 122 replies
  • April 4, 2025

...from this django gloassary: https://developers.klaviyo.com/en/docs/glossary_of_variable_filters#replace

 

^^ A really helpful resource!


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • April 5, 2025

hello ​@annasophiefc 
Thank you very much for the response and even providing links. However, I am still quite confuse, because i am yet to get it right.

 


annasophiefc
Partner - Platinum
Forum|alt.badge.img+23
  • 2025 Champion
  • 122 replies
  • April 5, 2025

Hi again ​@ayomi56987 

 

Happy to help!

Are you able the send a screenshot of the payload (event data), that is causing you troubles?


Reply