[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

Can I combine picture and choice column

We have a list of prospect customers that where data regarding the company, status, etc. are entered. The users want to have many of the columns shown as pictures, for example a picture of the salesperson responsible. I have created picture columns where a URL to a picture in the Image library can be entered. However, it is not user-friendly to ask the users to find the correct URL and enter that every time. What I would like is a choice column where the choices are the relevant picture URLs that are then shown as pictures in the view.

 View with prospect customers
The UW column is picture column whereas the Dropdown pic is Choice column. Is it possible to display the Dropdown pic column as a picture?
0
kasperEH
Asked:
kasperEH
  • 2
2 Solutions
 
Jamie McAllister MVPArchitectCommented:
Out of the box I would say not possible I have seen the effect done with JQuery as per this link; http://www.marghoobsuleman.com/jquery-image-dropdown
0
 
dexterrajeshCommented:
hi,

a simple idea(I have not tried it though !),

create  a drop down choice column to list the image urls
configure the choice column to be displayed in the edit form(alone) for user data entry
display the picture column(should be a calculated column to refer the drop down column with urls and render an html div with img) in the list item view(ur custom view)

in brief create a drop down column for data entry and a calculated picture column to display the picture

references: http://www.sharepointcommunity.com/spcblog/Lists/Posts/Post.aspx?ID=77 
http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/
0
 
kasperEHAuthor Commented:
I tried to follow "Using calculated columns to write HTML" article, but it was obviously written for SharePoint 2007. We use SharePoint 2010. When I try to add JavaScript in a Content Editor, I get the "Your HTML may have been modified" error and the JavaScript is gone.
0
 
kasperEHAuthor Commented:
Thanks a lot for your comments, I have however decided to skip the idea.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now