Discussions

Ask a Question
Back to all

Custom_Field_Internal_Object Questions

Hello,

What is causing keys in the custom_field_internal_object to be _1 or _2 at the end of the key?

I've used the custom_field_internal_object to handle some conditional rendering on job cards and invoice/quote templates, but I noticed sometimes the keys use has a suffix of _1 or _2. I'll design the template using the _1, but then get an error when printing because the module data now has _2.

The value does not change and is referencing the same custom field.

I prefer to use the custom_field_internal_object as it allows me to use a custom field without having to loop the custom_fields array looking for a label.