2

I have a list who have a select field with numbers 1,2 or 3 to create a field on a list, that I want to do is to load another field who respond this one.

For example, if I select 1 display me into another field an image.

How can I do that using the only SharePoint online without a designer? is it possible?

3

Not sure what exactly you are trying to achieve but I think you can create three content types (let's say 1, 2 and 3) and add the fields you want to appropriate content type. For example Content Type 1 will have Title field only but Content Type 2 will have Title and Image.

Content Type 1

enter image description here

Content Type 2

enter image description here

In case this is not what you were looking for, have a look at this but you will need to use JavaScript/JQuery

  • Imagine I have a select list, depending of selected value another field load with an image depending of selected value. I don´t have an idea of how to do that – Ledwing Aug 24 '17 at 20:05
  • You mean a list with Toys and when I select a particular toy it should show a image of that toy? – SharePointer Aug 24 '17 at 20:28
  • Exactly, that´s that I want – Ledwing Aug 24 '17 at 20:29
  • As far as I know, you can't do this out of the box you will need to do it through javascript – SharePointer Aug 24 '17 at 20:52
  • Do you have some example about it? I search in google but didn´t found any – Ledwing Aug 24 '17 at 20:55
2

If you're looking to take the data entered by a user when creating/editing an item, and use it to display something different in a view, etc.. you'll want to look at utilizing JSLink.

Here's an example where a status indicator image is shown on a view, based on the data entered for that field.

http://www.aerieconsulting.com/blog/using-a-js-link-override-in-sharepoint-online

Hope that helps - cheers!

0

If you are using the modern experience, then you can do something like that:

1.Create a Pictures library and upload some images

,

  1. In your list add a lookup field named "Picture" pointing to the Pictures library and in this column show "Title".

  2. In the "Column Formatting" field enter the below json and replace the value of "src" attribute with your address:

    { "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "img", "attributes": { "src": "='https://yourtenant.sharepoint.com/Pictures/'+ @currentField.lookupValue + '.png'" }, "style": { "width": "120px" } }

  3. Save the form and add the "Picture" field to a view in your list

  4. Add some items to your list and be sure to choose something in the "Picture" field.
  5. You should get something like that:

enter image description here

  1. You can also format the column directly in the list view:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.