Display Image from Lookup Field
-
- Posts: 1
- Joined: Wed Apr 11, 2018
Is there a way to display an image on an edit form from an extended lookup field?
Example on a contact record, there is an employee image link. I would like to display that image on a task record where we have chosen that employee in a lookup field. I can display other fields but not an image link field.
Example on a contact record, there is an employee image link. I would like to display that image on a task record where we have chosen that employee in a lookup field. I can display other fields but not an image link field.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Bob,
It's not possible to directly add Picture field as an additional field for a Lookup. You have two options to get the URL with a Lookup:
1) Before saving an image, copy its URL to a hidden text field and then add this hidden text field as an additional for a Lookup. Will only be available after the item has been saved.
2) Using Cross-site Lookup, you can pull additional fields with the Lookup and access them with JavaScript on the form. Works dynamically, image can change as Lookup changes value.
These methods will get the URL, but won't display the image - you'll need to copy it with JavaScript to the Source of an Image control. If you want more information about either of these methods and how to implement them - do let me know!
It's not possible to directly add Picture field as an additional field for a Lookup. You have two options to get the URL with a Lookup:
1) Before saving an image, copy its URL to a hidden text field and then add this hidden text field as an additional for a Lookup. Will only be available after the item has been saved.
2) Using Cross-site Lookup, you can pull additional fields with the Lookup and access them with JavaScript on the form. Works dynamically, image can change as Lookup changes value.
These methods will get the URL, but won't display the image - you'll need to copy it with JavaScript to the Source of an Image control. If you want more information about either of these methods and how to implement them - do let me know!
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests