<?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,
);
$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,
);
$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,
);
$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,
);
$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,
);
$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,
);
$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,
);
$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(),
);
$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,
);
$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',
);