Hi Brendan,
I was wondering if there is a simple calculation to insert ‘_’ between individual words to form a keyword/hashtag that I can just copy and paste.
The attached shows how I have it now. I have to insert the _ while typing. Is there a way to insert it automatically into the hashtag line? I want to use keywords without the _ and if I am using hashtags, they need to be in there.
Could you give me a hint, please? Thanks.
Regards,
Kimberley
Attachments:
You must be
logged in to view attached files.
So you want all the spaces to be replaced with underscores within the value of a field? Is that what you’re wanting?
If so, you can use a Script field with the following script:
function Hash_Tag() {
var keyword = record.getFieldValue('fld-6ec7c1fdcc094a1c8d935b36158cb0a8');
var hashTag = "#" + keyword.split(' ').join('_');
return hashTag;
}
Hash_Tag();
Replace the fld-...
bit with the field ID from your own Keyword field.
Attachments:
You must be
logged in to view attached files.
Thank you, Brendan.
This is very helpful, as I need to use the keywords on my website and the hashtags in social media posts. I will upload the editorial plan soon.
Have a great evening!
Regards,
Kimberley