Happy Thursday, all. How would I display the non-...
# advancedpdf
j
Happy Thursday, all. How would I display the non-hierarchical name of a customer on a sales order template? If I use
${record.entity}
I’m getting the full hierarchical name, e.g.
Parent Company: Actual Company Name I want to Show
p
@jen you should be able to use
${record.entity?keep_after_last(": ")}
here that will only display the most child level entity name.
(The assumption being that none of your customers have
": "
in their name, but I've never come across any that do)
j
it’s not really a safe assumption. No other way?
p
Possibly taking the company name field from the customer record?
${record.entity.companyname}