File: /home/frenchy/www/_trash/wp-content/themes/biig/functions/acf-fields/form-contact.fields.php
<?php
if (function_exists('acf_add_local_field_group')) :
acf_add_local_field_group(array(
'key' => 'contactFormFields',
'title' => 'Formulaire de contact',
'fields' => array(
array(
'key' => 'objet_key',
'label' => 'Objet de votre demande',
'name' => 'objet',
'type' => 'select',
'required' => 1,
'allow_null' => 1,
'wrapper' => array(
'id' => 'objet-wrapper',
),
'choices' => array(
'Young Leaders' => 'Young Leaders',
'Young Talents' => 'Young Talents',
'Cyber Security' => 'Cyber Security',
'Health Initiative' => 'Health Initiative',
'Culture' => 'Culture',
'Gala' => 'Gala',
'French-american Breakfast' => 'French-american Breakfast',
'Autre' => 'Autre',
),
),
array(
'key' => 'prenom_key',
'label' => 'Votre prénom',
'name' => 'prenom',
'type' => 'text',
'required' => 1,
'wrapper' => array(
'id' => 'prenom-wrapper',
),
),
array(
'key' => 'nom_key',
'label' => 'Votre nom',
'name' => 'nom',
'type' => 'text',
'required' => 1,
'wrapper' => array(
'id' => 'nom-wrapper',
),
),
array(
'key' => 'adresse_email_key',
'label' => 'Votre adresse email',
'name' => 'adresse_email',
'type' => 'email',
'required' => 1,
'wrapper' => array(
'id' => 'email-wrapper',
),
),
array(
'key' => 'message_key',
'label' => 'Message',
'name' => 'message',
'type' => 'textarea',
'required' => 1,
'wrapper' => array(
'id' => 'message-wrapper',
),
),
),
'location' => array(
array(
array(
'param' => 'af_form',
'operator' => '==',
'value' => 'form_5d960090320ee',
),
),
),
));
endif;