Please help with Flow Designer Inline Script Issue.

Meera_P
Tera Expert

Hello,

 

I created a custom table with one URL field type.  The below inline script generate a URL and inserted it into the custom table.  However, the URL that is showing in the custom table looks like this.  Thank you

 

Example:

Meera_P_0-1711390299302.png

I would like to display it as the text "

 

1. Here is the Flow Designer Inline Script:

 
var SysId  = fd_data._2__for_each.item.sys_id;
var tableName = 'sc_req_item';
return '[code]' + 'Click here' +  url + '[/code]';

 

 

9 REPLIES 9

Where are you adding it?

It works on work notes. But not on a text field.


Please mark this response as correct or helpful if it assisted you with your question.

@SanjivMeher 

I created a custom table with one URL field type. 

Meera_P_0-1711408544557.png

I have tried changed the field type to 'String' and also "html", but still it did not work.

Yes...it wont work for a string or URL field.

In URL field you can only post an URL. But if you need a label, you will need to use HTML. And then use following code to populate it. But I am not sure, if it is worth since html field consume more space of a record. I would use URL field, if the customer agrees to just display the url.

 

var SysId  = fd_data._2__for_each.item.sys_id;
var tableName = 'sc_req_item';
return '<a href="'+url+'">Click here</a>';

Please mark this response as correct or helpful if it assisted you with your question.

Hi @SanjivMeher 

Thank you for continue to help!

I change the field type to "HTML" and it is still not displaying the label:  

Meera_P_0-1711601927294.png

 

In the list view it will show HTML...But in form view does it show the link properly?


Please mark this response as correct or helpful if it assisted you with your question.