开发者

How to insert custom field values in civicrm?

开发者 https://www.devze.com 2023-02-08 19:03 出处:网络
Hello friends I created some custom fields for contacts. How can I insert values to that custom fields. I tried to pass the custom v开发者_StackOverflowalues with params. but its not inserting. how to

Hello friends I created some custom fields for contacts. How can I insert values to that custom fields. I tried to pass the custom v开发者_StackOverflowalues with params. but its not inserting. how to insert that values. Kindly help me.


// Define input parms for the contact and initial primary location

$params = array(
                'first_name'    => 'Dan',
                'custom_{put your custom filed id here}' => "custom field value1",
                'custom_{put your custom filed id here}' => "custom field value2"
                );
$contact =&civicrm_contact_create( $params );
print_r($contact);

Like this way we can insert value to custom fields

0

精彩评论

暂无评论...
验证码 换一张
取 消