Syleron Posted October 24, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
0 Tyson Posted October 24, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
0 Syleron Posted October 25, 2014 Author Report Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.