You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get the value of a custom field

Accepted answer
24
Views
4
Comments
edited Jun 7, 2022 1:21PM in General Technical Discussions 4 comments

Summary

How to fetch a custom field value from the contact table in PHP

Content

Hello,

I have a PHP page that needs to know whether a boolean custom field is set to Yes or No. The custom field is for the Contacts table.

I have tried to use the approaches from several of the other questions that were answered in this space about fetching values from custom fields or custom objects. However I keep getting errors.

The custom field is called "consultant", and  I've tried several iterations of the code below and it is always throwing errors when I load the page.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!