Jump to content
  • 0

Getting The Value Of A Custom Field


Question

Posted

I'd like to grab the value of one of my custom fields and display it on one of the client pages. How would I go about grabbing the value of the custom field?

 

Thanks,

Andrew

2 answers to this question

Recommended Posts

  • 0
Posted
  On 10/24/2014 at 6:20 PM, Tyson said:

 

You should fetch the custom fields in the controller and make them available to the page you're referring to. You can fetch a custom field using Clients::getCustomField, and client custom field values using Clients::getCustomFieldValues, e.g.

$client_id = 1;
$custom_field_values = $this->Cliens->getCustomFieldValues($client_id);

 

Fantastic, thanks again Tyson!

 

Andrew

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...