How to default an Image in the Item Details to display during record creation?

How to default an Image in the Item Details to display during record creation?

Anonymous
Not applicable
942 Views
7 Replies
Message 1 of 8

How to default an Image in the Item Details to display during record creation?

Anonymous
Not applicable

Hello,

 

I am wondering how to add an image field (or calculated field) to display an image when a user is creating a record (i.e. before save). Is there a way to accomplish this?

 

Thanks!

 

Wendy

0 Likes
Accepted solutions (1)
943 Views
7 Replies
Replies (7)
Message 2 of 8

PLM-Sylvain.Bailly
Collaborator
Collaborator

Hi Wendy,

 

I don’t know if it is possible because my tests failed:

 

Test 1: Use a computed field

If you create a single line text field and use it as a computed field with a code like below, the image appears when you save your item and not in the creation phase.

 

'<img src="http://www.advancedoncotherapy.com/Portals/0/Logo.png" alt="AVO/ADAM" width="260" height="71">'

 

Test 2: Use a derived field

Same as the test 1 and this time you are forced to store in another [WS] the image and find a pivot field in the 2 workspaces.

 

Sorry

Message 3 of 8

Anonymous
Not applicable

I've used the computer field message mentioned earlier but it will not appear until you save the record.

Message 4 of 8

tony.mandatori
Autodesk
Autodesk

If the field is not updateable, then it should render the HTML.

 

It displays HTML code when it is updateable.

 

I haven't tried this recently - going on memory.  Please try setting updateable to false.

0 Likes
Message 5 of 8

tony.mandatori
Autodesk
Autodesk

I just mocked something up and it seems to work for me.

 

Days Left field is calculated and formatted with HTML and this is an edit screen...

 

2018-02-06 14_57_40-CO000020 - Change power supply layout - Fusion Lifecycle.png

Message 6 of 8

PLM-Sylvain.Bailly
Collaborator
Collaborator
Accepted solution

Hi,

 

It works also for me when you do an "EDIT" on an item which already exists. As you can see below, I have edited and item which contains computed fields "Risk Factor" and "Risk Factor Matrix" (the last one is an image).

RiskFactor.png

(sorry but for confidential reasons I must hide most of the information but as you can see on the top, we are in "edit" mode)

 

But the question is "ON CREATE" if I correctly understand. So, it means that it is when you create the first time the item (click on the "+" on the top right hand corner).

Message 7 of 8

tony.mandatori
Autodesk
Autodesk

Thanks for pointing that out... you're absolutely correct!

0 Likes
Message 8 of 8

Anonymous
Not applicable

Thank you!

 

Yes, the On Edit approach worked for me with the example you provided. I guess it is a request for the future to have the image display during Create. Thanks again!

0 Likes