Hi all,
I'm trying to replace a word in a resource string with a variable's value.
Here's my code:
{% GetResourceString("Project.type.residential").Replace("#residential#", variable) #%}
but am still outputting my Project.type.residential string in whole.
What am I doing wrong?
Cheers and thanks in advance.
Shawn
Did you check the event log to see if there was an error? Try
{% GetResourceString("Project.type.residential").ToString().Replace("#residential#", variable) |(identity)GlobalAdministrator%}
Hi Shawn,
I've checked expression in Macro console. It must work without executing ToString() method:
So check your event log and check the resource string, does #residential# exist there and is it the same?
Please, sign in to be able to submit a new answer.