I'm using Elements Connect to pull information from a URL datasource.
Transformed JSON example is below
{
"fileID": "15004477",
"filename": "1422813",
"storagelocation": "/disk1/mas2019_1422813",
"owner": "adam-f",
"companyname": "Grey Advertising",
"companyID": "738"
}
I'm able to pull the storagelocation value, but is there any way to format it before assigning it to my customfield to remove the /disk1/ prefix?
It seems like this could be done with the editor component/template but I've only been able to add text, not remove or replace it.
Hi @Ian Fallon,
I'm afraid what you want to do is not possible for now. Indeed, in the Display Template, you can only use text and HTML. It's only possible to format the data; you can't change it.
I guess there must be some HTML tricks to truncate a text, but this is just a workaround. The real value that will be stored in the custom field will be the same; the full string.
Does that answer your question?
Kind regards,
Thanks for getting back to me.
This could be a useful feature to introduce at a later date though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.