I'm new to BPMOnline and I was wondering how to make a custom field linkable to an external source - a hyper link. I understand how to create fields, display them, but can you control formatting or make them of type link?
The getUsrURLpageLink returns an object with two parameters. You can adjust the value, which is passed to the parameter. Url parameter will store the link. Caption parameter will be set to value from other field.
Therefore, retrieve the needed value before return and use it in the caption parameter. The method will look somewhat like this:
Here my doubt was After implementing of your code Now my text fields are changed to hyperlinks. But in column setup why Its showing as normal filed and only once opening of edit page its showing that filed as a hyperlink.How we can show in column setup also that filed as a hyperlink without using hppt/https.
Unfortunately, there is no easy way to do the same it in the grid aside from using http/https (or other link-type strings like email, etc.) You can do it by extending or overriding class Terrasoft.Grid (you can find it in the web console, you won't be able to find it in configuration) and changing the method formatCellContent to call formatCellLink when you need it to aside from cases when it is called by default. You can debug method formatCellContent and see how it works in OOB version and create your own based on that. Unfortunately, we don't have examples of such implementation.
Please see the following articles on how to override modules: