cancel
Showing results for 
Search instead for 
Did you mean: 

Output Doc: Merge Field in IMG tag for svmx-data

Roast Chef
Roast Chef

Output Doc: Merge Field in IMG tag for svmx-data

Scenario is as follows:

  1. SVMXC Documents folder has multiple images for name "Esign_HXXXXX"
  2. Output Document has following line to pull image into signature block.  This works fine.

               <img alt="FE Esign" class="logo" src="" svmx-data="{{$F.IMAGE('Esign_HXXXXX')}}" />

Requirement is to replace HXXXXX with merge field from same object so that the Image lookup is dynamic.  In this example, we are replacing HXXXXX with the Technician Work Center field on this particular WO, such as HYYYYY.  I have tried multiple variations of the following, but it doesn't seem that merge field within the svmx-data settings is respected and is instead just reading as string.

<img alt="FE Esign" class="logo" src="" svmx-data="{{$F.IMAGE('Esign_{{$D.Work_Order.Technician_Workcentre__c}}')}}" />

<img alt="FE Esign" class="logo" src="" svmx-data="

{{$F.IMAGE('Esign_"{{$D.Work_Order.Technician_Workcentre__c}}"')}}" />

Does anyone know how this can be done?

Message 1 of 9
0 Likes
8 Replies
Sushi Chef
Sushi Chef

Re: Output Doc: Merge Field in IMG tag for svmx-data

If it were possible, this would likely be the syntax.

svmx-data="{{$F.IMAGE($F.FORMAT('Esign_{0}',$D.Work_Order.Technician_Workcentre__c))}}"

Message 2 of 9
Roast Chef
Roast Chef

Re: Output Doc: Merge Field in IMG tag for svmx-data

Thanks Scott- will give that a try and report back!

Sent from my iPhone

Message 3 of 9
0 Likes
Roast Chef
Roast Chef

Re: Output Doc:  Merge Field in IMG tag for svmx-data

Unfortunately this syntax, and a few variations on it that I tried, did not work either.  I'll update the Idea with those details.  Thanks!

Message 4 of 9
0 Likes
Sushi Chef
Sushi Chef

Re: Output Doc:  Merge Field in IMG tag for svmx-data

Anytime. Did you include OUTPUT_DOCUMENT on the uploaded document to allow it to be on an output doc? I also left out the syntax that preloads but doesnt display the image that is also standard when loading images in an opdoc.

Message 5 of 9
0 Likes
Roast Chef
Roast Chef

Re: Output Doc: Merge Field in IMG tag for svmx-data

Yeah, I do direct link image shows properly- when doing the merge field/ reference that is where error comes.

Sent from my iPhone

Message 6 of 9
0 Likes
Highlighted
Sushi Chef
Sushi Chef

Re: Output Doc: Merge Field in IMG tag for svmx-data

How man different esign images is it?

Message 7 of 9
Roast Chef
Roast Chef

Re: Output Doc:  Merge Field in IMG tag for svmx-data

If I could get it working it may be in 1500 range

Message 8 of 9
0 Likes
Roast Chef
Roast Chef

Re: Output Doc:  Merge Field in IMG tag for svmx-data

And I should say that I'm really just exploring as a potential option, and not all approvals are gained to actually use this type of approach.  Just want to make sure it's possible before pushing for that.

Message 9 of 9
0 Likes