ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Formatter for link fields, any example?


#1

Hi there,

any example on this:

[https://frappe.github.io/frappe/user/en/guides/desk/formatter_for_link_fields](https://frappe.github.io/frappe/user/en/guides/desk/formatter_for_link_fields)

https://frappe.io/docs/user/en/guides/desk/formatter_for_link_fields

Thanks


#2

Hi @JoEz

please check https://github.com/frappe/erpnext/blob/develop/erpnext/public/js/utils.js#L182-L196

Thanks.


#3

@makarand_b thx for the link

I’ve checked Items on Purchase Order but still can’t understand how it works.

Do u have a screen shot or a gif to share?

Thx in advance


#4

Are u asking lyk this…
Employee ID : Employee Name
.


#5

@hereabdulla Thx, i got how it works.

Now, let’s say i’ve created a new DocType, i.e. Cash Ward …where to add code for link formatting so that will be not overwritten on bench update?


#6

Hello , did you ever find out how it works?? i want to implement link formatter


#7

Continued here


#8