Template field "Allow HTML"

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I have created a Template field and checked the box "Allow HTML" I add the flowing syntax

<a href="/{{{Id}}}">{{AcctSeed__Billing__r.AcctSeedERP__Sales_Order__r.Name}}</a>

The end result should display the Sales Order Name(number) and the users should be able to click on the Sales order number and be taking to the that Sales Order. The Sales order number does show up however when the number is clicked the user is taking to a billing object, I can get to the sales order from the billing object but was hoping to save a step and get directed straight to the sales order itself.

Any help would be greatly appreciated

The new guy
Photo of Daniel Alaniz

Daniel Alaniz

  • 422 Points 250 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Greg Jarrett

Greg Jarrett

  • 3,536 Points 3k badge 2x thumb
Hey Daniel, just a thought - its possible the 'Id' field is coming from a different Model than the Sales order - does the Id field correspond to a 'Billing' object?

You could always get the Id of the sales order by just replacing 'Name' with 'Id', so.....

<a href="/{{{AcctSeed__Billing__r.AcctSeedERP__Sales_Order__r.Id}}}">{{AcctSeed__Billing__r.AcctSeedERP__Sales_Order__r.Name}}</a>

does that work?
Photo of Daniel Alaniz

Daniel Alaniz

  • 422 Points 250 badge 2x thumb
Thank you ! It solved the issue.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,968 Points 20k badge 2x thumb
Thanks Greg.  That is exactly what I was going to say...