Welcome to the community, @Megan_Kenley! :grinning_face_with_big_eyes: Instead of removing it after it’s added, I suggest modifying the system you’re using to build the URL so that the optional piece is never added if that related field is empty. That can be done with a simple IF()
function around that part, like the example below. This is just the end of a longer formula, and I’m using the field name {Content}
to represent your optional content field. I’m also wrapping the contents of the {Content}
field in the ENCODE_URL_COMPONENT()
function, as all content passed via URL should be encoded:
... & IF(Content, "&content=" & ENCODE_URL_COMPONENT(Content))