<header class="fluid-container">
<div class="first-row">
<div class="logo"></div>
</div>
<div class="second-row"></div>
</header>
<div class="container form-container">
<div class="row">
<div class="col col-md-8 mx-auto mt-4">
<div class="form container">
<h1 class="headline h6 text-uppercase fw-light text-dark mb-4">
BOOK NOW
</h1>
<h2 class="headline h4 mb-5">
Contact data
</h2>
<div class="form ">
<form action="https://volvo-leads-api.ddev.site/v1.0/lead/create" method="POST" enctype="application/json" autocomplete="off" role="presentation" data-fetch-submit='{ "action": "https://volvo-leads-api.ddev.site/v1.0/lead/create", "method": "POST", "enctype": "application/json" }'>
<i data-error data-language="en" data-key="default">An error occurred. Please try again.</i>
<i data-error data-language="de" data-key="default">Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.</i>
<i data-error data-language="fr" data-key="default">Une erreur est survenue. Veuillez réessayer.</i>
<i data-error data-language="it" data-key="default">C'è stato un errore. Per favore riprova.</i>
<i data-notice data-language="en" data-key="success">The submission of the form was successful. We will get in contact with you soon.</i>
<i data-notice data-language="de" data-key="success">Die Übermittlung des Formulares war erfolgreich. Wir werden uns zeitnah bei Ihnen melden.</i>
<i data-notice data-language="fr" data-key="success">La soumission du formulaire a réussi. Nous prendrons bientôt contact avec vous.</i>
<i data-notice data-language="it" data-key="success">L'invio del modulo è andato a buon fine. Ci metteremo in contatto con te al più presto.</i>
<input type="hidden" name="interest_type" value="Test drive request" />
<input type="hidden" name="language" id="language" value="en" />
<input type="hidden" name="mode" value="qa" />
<input type="hidden" name="campaigncode" value="" />
<input type="hidden" name="reference" value="LEAD_FORM" />
<div class="row">
</div>
<div class="row">
<div class="col-12 col-lg-6 py-3">
<div class="input input--text">
<input id="first_name" name="first_name" type="text" required />
<label class="input__label" for="first_name">First name*</label>
<span class="input__error">
First name is a required field
</span>
</div>
</div>
<div class="col-12 col-lg-6 py-3">
<div class="input input--text">
<input id="last_name" name="last_name" type="text" required />
<label class="input__label" for="last_name">Last name*</label>
<span class="input__error">
Last name is a required field
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-6 py-3">
<div class="input input--text">
<input id="mobile" name="mobile" type="text" pattern="[\+]?[0-9]+" />
<label class="input__label" for="mobile">Mobile phone number</label>
<span class="input__error">
Mobile phone number is invalid.
</span>
</div>
</div>
<div class="col-12 col-lg-6 py-3">
<div class="input input--text">
<input id="email" name="email" type="text" required pattern="[\w\-\.]+@([\w\-]+\.)+[\w\-]{2,4}" />
<label class="input__label" for="email">E-mail contact*</label>
<span class="input__error">
<span data-error-type="pattern">Email is not in a valid format</span>
<span data-error-type="required">Email is a required field</span>
</span>
</div>
</div>
<div class="col-12 col-lg-6 py-3">
<div class="input input--dropdown input--select ">
<select id="dealerId" name="dealerId" required data-endpoint="https://www.volvocars-partner.ch/api/getdealers_json/?extend=partnerId,parmaPartnerCode" data-input-dropdown="{"caption": ""}" class="">
<option id="select-empty" class="option select-empty" value="">Select Volvo dealer*</option>
</select>
<label class="input__label visually-hidden" for="dealerId"></label>
<span class="input__error">Dealer is a required field</span>
</div>
</div>
<div class="col-12 col-lg-6 py-3">
<div class="input input--dropdown input--select ">
<select id="model" name="model" required data-input-dropdown='{
"caption": ""
}'>
<option class="option" value="">Select model*</option>
<option class="option" value="XC40">Volvo XC40</option>
<option class="option" value="XC60">Volvo XC60</option>
<option class="option" value="XC90">Volvo XC90</option>
<option class="option" value="V60">Volvo V60</option>
<option class="option" value="V90">Volvo V90</option>
<option class="option" value="S60">Volvo S60</option>
<option class="option" value="S90">Volvo S90</option>
<option class="option" value="EX30">Volvo EX30</option>
<option class="option" value="EX90">Volvo EX90</option>
<option class="option" value="C40">Volvo C40</option>
</select>
<label class="input__label" for="model"></label>
<span class="input__error">Model is a required field</span>
</div>
</div>
</div>
<div class="row">
<div class="col-12 py-4">
<div class="input input--textarea">
<textarea name="message" id="message" type="text" cols="30" rows="2"></textarea>
<label class="input__label" for="message">Additional Notes for the Volvo dealer</label>
<span class="input__error">Element is invalid</span>
</div>
</div>
</div>
<small class="d-block text-dark fw-bold mb-5">* Mandatory</small>
<article class="mb-2">
<h2 class="headline h5 mb-3">
Confidentiality
</h2>
<p class="mb-3">Volvo Car Switzerland AG stores and processes your data in accordance with the <a href="https://www.volvocars.com/en-ch/legal/privacy/privacy-customer-privacy-policy" target="_blank">data protection regulations</a>. As part of processing your request, Volvo Car Switzerland AG will also transmit your personal data to your selected representative for processing.<br>By choosing one or more of the communication channels below, I agree to the processing of my personal data in order to receive news and offers from Volvo Car Switzerland in the future AG and my elected representative via these channels.</p>
</article>
<div class="row mb-5">
<div class="col-12">
<div class="d-flex gap-5">
<div class="input input--checkbox">
<input id="contact_via_email" type="checkbox" name="contact_via_email" />
<label class="input__label" for="contact_via_email">E-Mail</label>
<span class="input__error">Element is invalid</span>
</div>
<div class="input input--checkbox">
<input id="contact_via_mobile" type="checkbox" name="contact_via_mobile" />
<label class="input__label" for="contact_via_mobile">Phone number</label>
<span class="input__error">Element is invalid</span>
</div>
</div>
</div>
</div>
<article>
<p>By submitting this request, you agree to the processing of your data.</p>
</article>
<p class="response_error" id="response_error"></p>
<p class="response_notice" id="response_notice"></p>
<div class="text-center my-4">
<button class="button" role="button" type="submit">
<span class="caption">
Submit
</span>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<style>
header .first-row .logo {
background-image: url('/static/volvo-wordmark-black.svg');
}
.thank-you p:first-child {
background-image: url('/static/thankyou/TestDrive_OffReq_Global_thank_you_page_FHD_lite.jpg')
}
</style>
<div class="container-fluid thank-you d-none">
<div class="row">
<div class="col text-center">
<p>Thank you for your request for a test drive with the <span id="thankYouModel"></span>.</p>
<p>You will shortly receive an email with the details of your booking request.</p>
</div>
</div>
</div>
<header class="fluid-container">
<div class="first-row">
<div class="logo"></div>
</div>
<div class="second-row"></div>
</header>
<div class="container form-container">
<div class="row">
<div class="col col-md-8 mx-auto mt-4">
{{#if title}}
{{> @headline tag="h1" size="h3" className="mb-6" text=title }}
{{/if}}
<div class="form {{ className }} container">
{{> @headline tag="h1" size="h6" className="text-uppercase fw-light text-dark mb-4" text=headlineOne }}
{{> @headline tag="h2" size="h4" className="mb-5" text=headlineTwo }}
{{#> @form action=form.action method=form.method contentType="application/json" fetchSubmit=true }}
{{#each form.errors}}
{{#each this}}
<i data-error data-language="{{@../key}}" data-key="{{@key}}">{{this}}</i>
{{/each}}
{{/each}}
{{#each form.notices}}
{{#each this}}
<i data-notice data-language="{{@../key}}" data-key="{{@key}}">{{this}}</i>
{{/each}}
{{/each}}
<input type="hidden" name="interest_type" value="{{ form.interestType }}" />
{{#if form.language }}<input type="hidden" name="language" id="language" value="{{ form.language }}" />{{/if}}
<input type="hidden" name="mode" value="qa" />
<input type="hidden" name="campaigncode" value="" />
<input type="hidden" name="reference" value="{{ form.reference }}" />
<div class="row">
{{!-- {{#if items.gender}}
<div class="col-6 col-lg-3 py-3">
{{> @input-dropdown name="gender" id="gender" options=items.gender.options error=items.gender.error }}
</div>
{{/if}} --}}
{{#if items.title}}
<div class="col-6 col-lg-3 py-3">
{{> @input-dropdown name="title" id="title" options=items.title.options }}
</div>
{{/if}}
</div>
<div class="row">
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.firstName.label color="primary" type="text" name="first_name" id="first_name" placeholder="" value="" error=items.firstName.error required=true }}
</div>
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.lastName.label color="primary" type="text" name="last_name" id="last_name" placeholder="" value="" error=items.lastName.error required=true }}
</div>
</div>
{{!-- {{#if items.birthday}}
<div class="row">
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.birthday.label color="primary" type="date" name="birthday" id="birthday" placeholder="" value="" error=items.birthday.error required=true }}
</div>
</div>
{{/if}} --}}
<div class="row">
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.contactPhone.label color="primary" type="text" name="mobile" id="mobile" placeholder="" errors=items.contactPhone.errors pattern="[\+]?[0-9]+" }}
</div>
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.contactEmail.label color="primary" type="text" name="email" id="email" placeholder="" value="" errors=items.contactEmail.errors required=true pattern="[\w\-\.]+@([\w\-]+\.)+[\w\-]{2,4}" }}
</div>
{{#if items.address}}
<div class="col-12 py-3">
{{> @input label=items.address.label color="primary" type="text" name="address" id="address" placeholder="" }}
</div>
{{else}}
{{#if items.street}}
<div class="col-12 py-3">
{{> @input label=items.street.label color="primary" type="text" name="street" id="street" placeholder="" value="" }}
</div>
{{/if}}
{{#if items.zip}}
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.zip.label color="primary" type="text" name="zip" id="zip" placeholder="" value="" }}
</div>
{{/if}}
{{#if items.city}}
<div class="col-12 col-lg-6 py-3">
{{> @input label=items.city.label color="primary" type="text" name="city" id="city" placeholder="" value="" }}
</div>
{{/if}}
{{#if items.country}}
<div class="col-12 col-lg-6 py-3">
{{> @input-dropdown name="country" id="country" options=items.country.options }}
</div>
{{/if}}
{{/if}}
{{#if items.dealerId}}
<div class="col-12 col-lg-6 py-3">
<div class="input input--dropdown input--select ">
<select
id="dealerId"
name="dealerId"
required
data-endpoint="{{ items.dealerId.endpoint }}"
data-input-dropdown="{"caption": ""}"
class=""
>
{{#each items.dealerId.options}}
<option id="select-empty" class="option select-empty" value="{{ value }}">{{ text }}</option>
{{/each}}
</select>
<label class="input__label visually-hidden" for="dealerId"></label>
<span class="input__error">{{#if items.dealerId.error}}{{ items.dealerId.error }}{{ else }}{{#if label}}{{ label }} is invalid.{{/if}}{{/if}}</span>
</div>
</div>
{{/if}}
{{#if items.accessory}}
<div class="col-12 col-lg-6 py-3">
{{> @input-dropdown name="accessory" id="accessory" options=items.accessory.options }}
</div>
{{/if}}
{{#if items.model}}
<div class="{{#if items.name}}col-6 col-lg-3 py-3{{else}}col-12 col-lg-6 py-3{{/if}}">
{{> @input-dropdown name="model" id="model" required=true options=items.model.options error=items.model.error}}
</div>
{{/if}}
{{#if items.year}}
{{!-- <div class="col-6 col-lg-3 py-3">
{{> @input-dropdown name="year" id="year" options=items.year.options }}
</div> --}}
{{/if}}
{{#if items.name}}
<div class="col-12 py-3">
{{> @input label=items.name.label type="text" name="name" id="name" }}
</div>
{{/if}}
</div>
<div class="row">
<div class="col-12 py-4">
{{> @textarea label=items.message.label color="primary" type="text" name="message" id="message" placeholder="" }}
</div>
</div>
<small class="d-block text-dark fw-bold mb-5">{{ items.mandatoryNotice.label }}</small>
<article class="mb-2">
{{> @headline tag="h2" size="h5" className="mb-3" text=items.privacy.title }}
<p class="mb-3">{{{ items.privacy.paragraphs.text }}}</p>
</article>
<div class="row mb-5">
<div class="col-12">
<div class="d-flex gap-5">
{{> @checkbox name="contact_via_email" id="contact_via_email" label=items.email.label }}
{{> @checkbox name="contact_via_mobile" id="contact_via_mobile" label=items.phone.label }}
</div>
</div>
</div>
<article>
<p>{{items.privacy.approval.text}}</p>
</article>
<p class="response_error" id="response_error"></p>
<p class="response_notice" id="response_notice"></p>
<div class="text-center my-4">
{{> @button type="submit" text=items.privacy.approval.button.text }}
</div>
{{/@form }}
</div>
</div>
</div>
</div>
<style>
header .first-row .logo {
background-image: url('/static/volvo-wordmark-black.svg');
}
.thank-you p:first-child {
background-image: url('/static/thankyou/{{ form.thankYouBackgroundImage }}')
}
</style>
<div class="container-fluid thank-you d-none">
<div class="row">
<div class="col text-center">
{{{ form.thankYou }}}
</div>
</div>
</div>
{
"title": false,
"form": {
"id": "lead-form--testdrive-request",
"name": "lead-form--testdrive-request",
"reference": "LEAD_FORM",
"action": "https://volvo-leads-api.ddev.site/v1.0/lead/create",
"method": "POST",
"contentType": "application/json",
"autocomplete": false,
"novalidate": false,
"customValidate": true,
"toggleSubmit": false,
"language": "en",
"interestType": "Test drive request",
"errors": {
"en": {
"default": "An error occurred. Please try again."
},
"de": {
"default": "Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut."
},
"fr": {
"default": "Une erreur est survenue. Veuillez réessayer."
},
"it": {
"default": "C'è stato un errore. Per favore riprova."
}
},
"notices": {
"en": {
"success": "The submission of the form was successful. We will get in contact with you soon."
},
"de": {
"success": "Die Übermittlung des Formulares war erfolgreich. Wir werden uns zeitnah bei Ihnen melden."
},
"fr": {
"success": "La soumission du formulaire a réussi. Nous prendrons bientôt contact avec vous."
},
"it": {
"success": "L'invio del modulo è andato a buon fine. Ci metteremo in contatto con te al più presto."
}
},
"thankYou": "<p>Thank you for your request for a test drive with the <span id=\"thankYouModel\"></span>.</p><p>You will shortly receive an email with the details of your booking request.</p>",
"thankYouBackgroundImage": "TestDrive_OffReq_Global_thank_you_page_FHD_lite.jpg"
},
"items": {
"firstName": {
"label": "First name",
"text": "First name",
"error": "First name is a required field"
},
"lastName": {
"label": "Last name",
"text": "Last name",
"error": "Last name is a required field"
},
"birthday": {
"label": "Birthday",
"error": "Date of Birth is a required field"
},
"phone": {
"label": "Phone number",
"errors": {
"pattern": "Mobile phone number format is not valid"
}
},
"email": {
"label": "E-Mail"
},
"contactPhone": {
"label": "Mobile phone number"
},
"contactEmail": {
"label": "E-mail contact",
"error": "Email is a required field",
"errors": {
"pattern": "Email is not in a valid format",
"required": "Email is a required field"
}
},
"address": false,
"dealerId": {
"endpoint": "https://www.volvocars-partner.ch/api/getdealers_json/?extend=partnerId,parmaPartnerCode",
"error": "Dealer is a required field",
"options": [
{
"text": "Select Volvo dealer*",
"value": ""
}
]
},
"gender": {
"value": "",
"error": "Gender is a required field",
"options": [
{
"text": "Select gender",
"value": ""
},
{
"text": "Male",
"value": "Male"
},
{
"text": "Female",
"value": "Female"
},
{
"text": "Other",
"value": "Other"
}
]
},
"message": {
"label": "Additional Notes for the Volvo dealer"
},
"mandatoryNotice": {
"label": "* Mandatory"
},
"model": {
"error": "Model is a required field",
"options": [
{
"text": "Select model*",
"value": ""
},
{
"text": "Volvo XC40",
"value": "XC40"
},
{
"text": "Volvo XC60",
"value": "XC60"
},
{
"text": "Volvo XC90",
"value": "XC90"
},
{
"text": "Volvo V60",
"value": "V60"
},
{
"text": "Volvo V90",
"value": "V90"
},
{
"text": "Volvo S60",
"value": "S60"
},
{
"text": "Volvo S90",
"value": "S90"
},
{
"text": "Volvo EX30",
"value": "EX30"
},
{
"text": "Volvo EX90",
"value": "EX90"
},
{
"text": "Volvo C40",
"value": "C40"
}
]
},
"privacy": {
"title": "Confidentiality",
"paragraphs": {
"text": "Volvo Car Switzerland AG stores and processes your data in accordance with the <a href=\"https://www.volvocars.com/en-ch/legal/privacy/privacy-customer-privacy-policy\" target=\"_blank\">data protection regulations</a>. As part of processing your request, Volvo Car Switzerland AG will also transmit your personal data to your selected representative for processing.<br>By choosing one or more of the communication channels below, I agree to the processing of my personal data in order to receive news and offers from Volvo Car Switzerland in the future AG and my elected representative via these channels."
},
"approval": {
"text": "By submitting this request, you agree to the processing of your data.",
"button": {
"text": "Submit",
"value": ""
}
}
}
},
"headlineOne": "BOOK NOW",
"headlineTwo": "Contact data"
}
.form {
button[type="submit"][disabled] {
background-color: #e7e7e7;
border-color: #aaaaaa;
color: #aaaaaa;
cursor: not-allowed;
}
.response_error {
min-height: 0;
color: var(--brand-color-error);
}
.response_notice {
min-height: 0;
color: var(--bs-success);
}
[data-error],
[data-notice] {
display: none;
}
}
.thank-you {
padding: 0;
p {
margin-bottom: 1rem;
&:first-child {
background-color: #666;
background-size: cover;
background-position: center;
color: #efefef;
font-size: 2rem;
min-height: 320px;
line-height: 3rem;
padding-top: 7rem;
}
}
}
No notes defined.