Syleron Posted October 24, 2014 Report Posted October 24, 2014 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
0 Tyson Posted October 24, 2014 Report Posted October 24, 2014 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); Michael 1
0 Syleron Posted October 25, 2014 Author Report Posted October 25, 2014 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
Question
Syleron
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now