Skip to main content
Solved

Removing Brackets on Tracking Number

  • October 15, 2024
  • 1 reply
  • 21 views

Forum|alt.badge.img
  • Contributor I
  • 1 reply

When I try to call the tracking number metric it shows up in brackets and apostrophes [see image below]. I want it to show up as just the number with no brackets of apostrophes. Can anyone else to edit it to fix this problem?

Here is the code that produces it:

<div style="text-align: center;"> </div>
<div style="text-align: center;"><span style="font-weight: bold;">Shipping Company:</span></div>
<div style="text-align: center;">{{ event|lookup:'Tracking Company'|default:'' }}</div>
<div style="text-align: center;">&nbsp;</div>
<div style="text-align: center;"><span style="font-weight: bold;">Tracking Number:</span></div>
<div style="text-align: center;">{{ event|lookup:'Tracking Numbers'|default:'' }}</div>
<div style="text-align: center;">&nbsp;</div>

 

This is what the input is
This is the output with the tracking number in the brackets

 

Best answer by bluesnapper

Welcome to the community @JJSI 

If there is only ever one tracking number, this should work:

{{ event|lookup:'Tracking Numbers'|lookup: 0 }}

Regards

Andy 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 737 replies
  • Answer
  • October 15, 2024

Welcome to the community @JJSI 

If there is only ever one tracking number, this should work:

{{ event|lookup:'Tracking Numbers'|lookup: 0 }}

Regards

Andy