Sep 19, 2022 01:06 PM
Hello-
I need some help, need to remove the :, |, - characters for when the field type is not selected so it doesnt look lie this:
MARKETNG REQUEST | | GRAPHIC DESIGN: STICKER - 5 X 7 ASTRA NATIONAL TOY STORE MONTH & TRYAZON MAILINGS
or
MARKETNG REQUEST | MON: YELLOWSTONE | DIGITAL MEDIA: SHOWCASE -
Sep 19, 2022 01:21 PM
Hi,
use substitute
or regex_replace(field, “[:|-]”, “”)
Sep 19, 2022 01:38 PM
Thank you!
It’s still shows unless I am missing something:
MARKETNG REQUEST | OFFICE - WALL DECORATION | - CUSTOM SHADOW BOXES
MARKETNG REQUEST | PHOTOGRAPHY - SHOWCASE | CLUE: FINDING NEMO -
SO when Corporate Task Description is blank or any other field type is blank, the character that separates will be removed.
IF(REGEX_REPLACE({MARKETING CAMPAIGN}, ‘[:|-]’, ‘’),
CONCATENATE(
{MARKETING CAMPAIGN},
IF( {ASSET TYPE}, " | " & {ASSET TYPE}),
IF( {ASSET TASK}, " - " & {ASSET TASK}),
IF( {CAMPAIGN TYPE}, ": " & {CAMPAIGN TYPE}),
IF( {CORPORATE TASK DESCRIPTION}, " - " & {CORPORATE TASK DESCRIPTION})
),
‘MARKETNG REQUEST’
& ’ | ’ &{ASSET TYPE}
& ’ - ’ &{ASSET TASK}
& ’ | ’ &{Item Description}
& ’ - ’ &{CORPORATE TASK DESCRIPTION})
Sep 19, 2022 02:24 PM
In fact, you missed most important part of info in first message. Now it’s more clear. please disregard part about sub and regex
Your goal is not to remove chars, you need to debug why blank values counted by formula as non-blank. Usually it’s lookups, but not limited to.
Sep 19, 2022 11:26 PM
Where do I insert, if Marketing Campaigns is blank, Then in place of {Marketing Campaigns}, ‘Marketing Request’ is auto filled:
MARKETING CAMPAIGNS - OFFICE: WALL DECORATION (IF FILLED IN)
If not:
MARKETING REQUEST - OFFICE: WALL DECORATION (IF FILLED IN)
IF(
{MARKETING CAMPAIGN},
{MARKETING CAMPAIGN} & IF(
{ASSET TYPE},
" - " & {ASSET TYPE},“-”& {Item Description}
) & IF(
{ASSET TASK},
“: " & {ASSET TASK}
),
IF(
OR(
{ASSET TASK},
{ASSET TYPE},
{Item Description}
),
IF(
{ASSET TYPE},{ASSET TYPE} &
IF(
{ASSET TASK},”: " & {ASSET TASK} &
IF(
{Item Description},": " & {Item Description}
)
)
)
))
Thank you!