<?php
$pFields[] = array(
'name'=>'first_name',
'title'=>array(1=>'Wat is uw voornaam?',2=>'What is your first name?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
'pattern'=>"^[a-zA-Z\.\- ]+$",
'error'=>array(1=>'Vul uw voornaam in. Speciale karakters zijn helaas niet toegestaan.',2=>'Please fill in your first name. Special characters are not allowed in this field.'),
'group' => 1,
'required' => true,
'mobiletitle' => 'voornaam',
'class' => '',
'autocomplete' => 'given-name',
);
$pFields[] = array(
'name'=>'last_name',
'title'=>array(1=>'Wat is uw achternaam?',2=>'What is your last name?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
'placeholder' => array(1=>'Bijv. "van der Ven"',2=>''),
'pattern'=>"^[a-zA-Z\.\- ]+$",
'error'=>array(1=>'Vul uw achternaam in. Speciale karakters zijn helaas niet toegestaan.',2=>'Please fill in your last name. Special characters are not allowed in this field.'),
'group' => 1,
'required' => true,
'mobiletitle' => 'achternaam',
'class' => '',
'autocomplete' => 'family-name',
);
$pFields[] = array(
'name'=>'postal',
'title'=>array(1=>'Wat is uw postcode?',2=>'What is your zip code?'),
'type'=>'text',
'note'=>array(1=>'Voer in als: 1234AA',2=>'Fill in as: 1234AA'),
'pattern'=>"^([1-9]{1}[0-9]{3}[ A-Za-z]{2,3})|([1-9]{1}[0-9]{3,5})$",
'error'=>array(1=>'Vul uw postcode in als: 1234AA',2=>'Please fill in your zipcode as: 1234AA'),
'group' => 2,
'replace'=>' ',
'transform'=>'uppercase',
'special'=>'fillAddress',
'required' => true,
'mobiletitle' => 'postcode',
'class' => 'mobile-1-3',
'autocomplete' => 'postal-code',
);
$pFields[] = array(
'name'=>'streetnr',
'title'=>array(1=>'Op welk huisnummer woont u?',2=>'What is your street number?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
'pattern'=>"^([1-9]{1}[0-9]{0,5})$",
'error'=>array(1=>'Vul uw huisnummer in. Spaties zijn niet toegestaan. Toevoeging graag opgeven in het aparte veld.',2=>"Please fill in your house number. Spaces are not allowed. Please add any suffixes in the field below."),
'group' => 2,
'special'=>'fillAddress',
'required' => true,
'mobiletitle' => 'huisnummer',
'class' => 'mobile-1-3',
'autocomplete' => 'on',
);
$pFields[] = array(
'name'=>'suffix',
'title'=>array(1=>'Heeft uw huisnummer een toevoeging?',2=>'Please enter your house number suffix?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
'pattern'=>"",
'error'=>array(1=>'Vul uw toevoeging in. Spaties zijn niet toegestaan.',2=>"Please fill in your house number suffix. "),
'group' => 2,
'required' => false,
'mobiletitle' => 'toevoeging',
'class' => 'mobile-1-3-last',
'autocomplete' => 'on',
);
$pFields[] = array(
'name'=>'address',
'title'=>array(1=>'Wat is uw straatnaam?',2=>'What is your street name?'),
'type'=>'text',
'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
'pattern'=>"^[0-9a-zA-Z\.\- ']+$",
'error'=>array(1=>'Vul uw straatnaam in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your street name. Special characters are not allowed in this field.'),
'group' => 2,
'required' => true,
'mobiletitle' => 'straat',
'class' => '',
'autocomplete' => 'address-line1',
);
$pFields[] = array(
'name'=>'city',
'title'=>array(1=>'Wat is uw plaatsnaam?',2=>'What city do you live in?'),
'type'=>'text',
'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
'pattern'=>"^[a-zA-Z\.\- ]+$",
'error'=>array(1=>'Vul uw plaatsnaam in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your city. Special characters are not allowed in this field.'),
'group' => 2,
'required' => true,
'mobiletitle' => 'plaats',
'class' => '',
'autocomplete' => 'address-level2',
);
$pFields[] = array(
'name'=>'country',
'title'=>array(1=>'Wat is uw land?',2=>'What country do you live in?'),
'type'=>'select',
'note'=>array(1=>'',2=>''),
'pattern'=>"",
'error'=>array(1=>'Vul uw land in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your country. Special characters are not allowed in this field.'),
'group' => 2,
'required' => true,
'options' => \Symfony\Component\Intl\Intl::getRegionBundle()->getCountryNames(),
'mobiletitle' => 'land',
'class' => '',
'autocomplete' => 'country',
);
$pFields[] = array(
'name'=>'phone',
'title'=>array(1=>'Wat is uw telefoonnummer?',2=>'What is your phone number?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
//'pattern'=>'^(?:0|(?:\+|00) ?31 ?)(?:(?:[1-9] ?(?:[0-9] ?){8})|(?:6 ?-? ?[1-9] ?(?:[0-9] ?){7})|(?:[1-9]\d ?-? ?[1-9] ?(?:[0-9] ?){6})|(?:[1-9]\d{2} ?-? ?[1-9] ?(?:[0-9] ?){5}))',
'pattern' => '',
'error'=>array(1=>'Vul uw telefoonnummer in.',2=>'Please fill in your phone number.'),
'group' => 3,
'required' => true,
'mobiletitle' => 'telefoon',
'class' => '',
'autocomplete' => 'tel',
);
$pFields[] = array(
'name'=>'email',
'title'=>array(1=>'Wat is uw emailadres?',2=>'What is your e-mail adress?'),
'type'=>'text',
'note'=>array(1=>'',2=>''),
'pattern'=>"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$",
'error'=>array(1=>'Vul uw emailadres in.',2=>'Please fill in your e-mail address.'),
'group' => 3,
'required' => true,
'transform'=>'lowercase',
'mobiletitle' => 'e-mailadres',
'class' => '',
'autocomplete' => 'email',
);
$pFields[] = array(
'name'=>'birthdate',
'title'=>array(1=>'Wat is uw geboortedatum?',2=>'What is your date of birth?'),
'type'=>'text',
'note'=>array(1=>'Wil je een cadeautje ontvangen op je verjaardag? Vul dan hier je geboortedatum in. LET OP: dit is niet verplicht, maar we sturen je graag een cadeautje :).',2=>'Do you want to receive a special gift on your birthday? Fill in your Date of Birth here. It is not a required field - but we would love to send you a small surprise on your special day :).'),
'pattern'=>"",
'error'=>array(1=>'',2=>''),
'group' => 3,
'required' => false,
'mobiletitle' => 'geboortedatum (DD/MM/YYYY)',
'class' => 'datepicker',
'autocomplete' => 'bday',
);