Custom fields
Use the document layout field name to add your own custom fields to your quotes and orders.
Last updated
Use the document layout field name to add your own custom fields to your quotes and orders.
Last updated
Custom fields let you add things like text boxes, tick boxes, drop-down lists, date pickers, and other fields to any screen in your Current RMS system so you can store additional information.
If you like, you can pull through custom fields to document layouts and discussion templates. They behave like Liquid objects.
Do you operate in multiple languages? Create custom fields against your products to store an alternative name or description and pull those through to opportunity documents.
Create fields for product website, dimensions, or other data and display this on your opportunity documents.
Risk assessments
Make tickbox custom fields against an opportunity and pull through the values of those for a handy risk assessment checklist that can be shown on opportunity documents.
Liquid can be used to manipulate data that’s displayed on your documents, great for selectively hiding information. For example, you might have a boolean against an opportunity item or product that determines whether it's visible on a printed document.
If you’ve not already, create your custom fields in System Setup > Custom Fields.
To add custom fields to documents layouts, use the Document Layout Field Name in System Setup > Custom Fields.
This is generally the name of the custom field with underscores replacing spaces. For example, “Test Date” becomes test_date
.
The field name is your Liquid object. The way that you access the custom field depends on both the module where you created the field, as well as the document you wish to access it in. Check the guide that relates to the module that you created the custom field against for information on how to access it.
To access a product custom field in the opportunity items loop
{{ item.product.custom_field_name }}
To access an organization custom field on an opportunity or invoice document
{{ customer.custom_field_name }}
To access opportunity custom fields on an opportunity document
{{ order.custom_field_name }}
Most types of custom field return data in a way that you'd expect. For example, a text custom field returns a string. There are a couple of exceptions.
You might expect booleans to return true
or false
. However, they return a string with the values:
Yes
No
blank
When you create a boolean against a module, existing records in that module have their type set as blank because they haven't explicitly been set as true
or false
. When you update records, they're set as true
or false
.
To use a boolean in your documents in liquid tags, check to see if a string is “Yes” or “No”. For example:
Remember to cater for blank values where necessary.
Custom fields with the type multi list of values (i.e. a list of tick boxes) store data as a string containing all of the list items.
To check whether a value is present, use the contains
operator. For example:
There's no operator for “does not contain”, but you may use an unless statement to check to see if a condition isn't met.