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 Quote
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 Quote
0 Syleron Posted October 25, 2014 Author Report Posted October 25, 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); Fantastic, thanks again Tyson! Andrew Quote
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.