0

We want to make every time a user inputs 8pm or 9am in a text field in content editor, when the email is sent the pm and am are broken up with a zero-width-non-joiner. e.g 8p‌m

Is that possible with replace()?

4
  • Can you please share your code snippet? Commented Jan 7, 2019 at 14:32
  • I don't have a code snippet - I was hoping to find a general way of replacing all instances of pm with 8‌pm within a content module.
    – Jay Oram
    Commented Jan 7, 2019 at 14:40
  • Do you mean directly inside of the Email Studio? Commented Jan 7, 2019 at 14:55
  • Yes directly in the email studio
    – Jay Oram
    Commented Jan 7, 2019 at 15:16

1 Answer 1

1

SFMC does not allow you to change anything in the default UI that would allow this. Your best bet would be one of two options:

  1. To have your content inserted elsewhere and then pull in that content via AMPScript/SSJS or API and do your replace there. Example via external Content block, API retrieve or Data Extension.
  2. To build your own content block with custom settings via Content Block SDK to handle this and any other custom rules you may have.
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .