Hi,
I am using a custom "Text with Formatting" field and sending this field's data in a email notification to user however I am getting the data in below format rather than the simple text. I guess its the Draft.js Raw Content State.
{"blocks":[{"key":"kami","text": "Observations & Recommendations","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}
Does anyone have any idea how to get this field's data into simple text form?
Any help or suggestion would be appreciated. TIA!!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Himanshu4 - You can parse the JSON string using the Parse JSON module and then extract the text in the next step using the following:
get(map(mapblockhere[];text);1)
Views
Replies
Total Likes
Hi @Himanshu4 - You can parse the JSON string using the Parse JSON module and then extract the text in the next step using the following:
get(map(mapblockhere[];text);1)
Views
Replies
Total Likes
Thank you@_Manish_Singh
If there are multiple texts, you can use:
join(map(mapblockhere[];text);"")
Views
Replies
Total Likes
Views
Likes
Replies