Pulling image into form

Hi there,

I have several company images stored within the server inside /files and need to retrieve to be reflected in a form according to company name chosen.

For instance:
When I choose company 1, it will show this red circle in the field below





And if i choose company 2, it will reflect a grey rectangular

This function I am implementing would be applicable to a few other forms.
Currently I am unable to pull out the image from the server to be reflected here.

Is anyone able to advice me on this?
Thanks!

You can add Image and Image View fields in Company from and your form.
then you can use add_fetch to fetch images from company.

https://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/custom-script-fetch-values-from-master.html

1 Like

@jlsy Jilsy can you please tell me how you added image in form?
what data type did you select?
kindly share a screenshot of customize form with me please.

1 Like

This page is not available