References Using Masked and Hidden Attributes

Julie Earnest
Julie Earnest
  • Updated

For additional information on creating Reference fields

Reference Fields

Configuring Reference Fields by Service Type

Company-level Reference fields can be created via the Admin > Company menu > Configuration tab.

Customer-level Reference fields can be created via the Admin > Customers menu > General tab

Set a Reference field to Masked or Hidden

Click the pencil icon on any existing reference field to open the pop-up window Edit Reference Field Configuration

Snag_9e886b5.png

The masked option hides part of the reference field from displaying on the invoice. If the value was Julie Smith, the masked field would display ****** Smith.

The Hidden field is used if you do not want a particular reference field to display on an invoice, but you want all other reference fields to display associated with that customer.

Snag_9e6db95.png

 

This is the default invoice code snippet that displays all reference fields UNLESS they are hidden or masked:

<%for(ref in refs) { %><%if(!ref.config?.hidden) { %>
<%if(ref?.config?.masked) { %>
<b>${ref.name}:</b> ${booking.mask(ref.ref)}
<% }else{ %>
<b>${ref.name}:</b> ${ref.ref}
<% } %>
<br />
<% } %>
<% } %>

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request