{ "id": "lead", "config": [{ "content": [{ "fields": [{ "name": "businessUnit", "type": "hidden" }, { "name": "gender", "label": "Anrede*", "width": "1\/2", "options": [{ "name": "Frau", "value": "2" }, { "name": "Herr", "value": "1" }, { "name": "Divers", "value": "3" }, { "name": "keine Angabe", "value": "0" } ], "required": true, "fieldType": "MultiSelect", "mode": "single", "placeholder": "Anrede", "errorMessage": "Anrede ist ein Pflichtfeld" }, { "name": "firstName", "label": "Vorname*", "width": "1\/2", "required": true, "fieldType": "Text", "placeholder": "Vorname", "errorMessage": "Vorname ist ein Pflichtfeld" }, { "name": "lastName", "label": "Nachname*", "width": "1\/2", "required": true, "fieldType": "Text", "placeholder": "Nachname", "errorMessage": "Nachname ist ein Pflichtfeld" }, { "name": "email", "label": "E-Mail*", "width": "1\/2", "required": true, "fieldType": "Email", "placeholder": "max.mustermann@domain.com" }, { "name": "phone", "label": "Telefonnummer*", "width": "1\/2", "fieldType": "Phone", "placeholder": "Telefonnummer (Beispiel: +4930123456)*", "required": true, "preferredCountries": [ "de", "at", "ch" ] }, { "name": "studyProgram", "label": "Studiengang*", "width": "1\/2", "required": true, "fieldType": "MultiSelect", "searchable": true, "placeholder": "Studiengang*", "triggerDynamicOptions": true, "optionsGroups": [{ "label": "Bachelor", "key": "Bachelor" }, { "label": "Master", "key": "Master" }, { "label": "MBAs", "key": "MBA" }, { "label": "Weiterbildung", "key": "Weiterbildung" } ], "options": [] }, { "name": "getStudyBrochureViaPost", "label": "Ich möchte mein Infomaterial zusätzlich per Post erhalten.", "hint": "Wir wollen eine umweltneutrale Hochschule werden. Willst Du uns dabei unterst\u00fctzen? Dann verzichte auf die Zusendung Deiner Papierbrosch\u00fcre.", "value": "1", "required": false, "fieldType": "Toggle" } ] }, { "fields": [{ "text": "Infos per Post", "condition": "getStudyBrochureViaPost", "fieldType": "Divider" }, { "name": "street", "label": "Straße*", "width": "1\/2", "required": true, "condition": "getStudyBrochureViaPost", "fieldType": "Text", "placeholder": "Straße", "errorMessage": "Straße ist notwendig für den Postversand" }, { "name": "streetNo", "label": "Hausnr.*", "width": "1\/2", "required": true, "condition": "getStudyBrochureViaPost", "fieldType": "Text", "placeholder": "Hausnr.", "errorMessage": "Hausnummer ist notwendig für den Postversand" }, { "name": "zip", "label": "PLZ*", "width": "1\/2", "required": true, "condition": "getStudyBrochureViaPost", "fieldType": "Text", "placeholder": "PLZ", "errorMessage": "Postleitzahl ist notwendig für den Postversand" }, { "name": "city", "label": "Ort*", "width": "1\/2", "required": true, "condition": "getStudyBrochureViaPost", "fieldType": "Text", "placeholder": "Ort", "errorMessage": "Ort ist notwendig für den Postversand" }, { "name": "country", "label": "Land*", "required": true, "condition": "getStudyBrochureViaPost", "fieldType": "MultiSelect", "searchable": true, "mode": "single", "placeholder": "Land", "errorMessage": "Land ist notwendig für den Postversand", "options": [{ "name": "Deutschland", "value": "DE" }, { "name": "Österreich", "value": "AT" }, { "name": "Schweiz", "value": "CH" } ] } ] }, { "fields": [{ "name": "termsAndConditions", "content": "Ich habe die Datenschutzerklärung<\/a> sowie die Informationen zum Widerrufsrecht und zu den Verantwortlichen zur Kenntnis genommen.", "fieldType": "Paragraph" }, { "name": "consent[sms,whatsapp,mail]", "label": "Ich willige ein, dass ich per E-Mail, SMS und WhatsApp Informationen zum Studium, Veranstaltungen sowie Rabattaktionen erhalten werde.", "fieldType": "CheckBox" }, { "fieldType": "hidden", "name": "testKey" }, { "fieldType": "hidden", "name": "groupKeys" } ] } ] }], "submit": "https:\/\/student-application.k8s.corporateit-prod.iu-aws.de/api/sf/{formType}", "submitRedirect": "/dein-infomaterial/?key={key}", "formData": { "formType": "lead", "studySite": "3", "formVersion": "Interest", "brochureVersion": "iu_2023", "businessUnitOptions": "fs", "disableProgramSelection": false, "groupKeys": "LeadStoryblok", "testKey": "LeadMarTech", "useV4": true }, "language": "de", "tracking": [], "dataLayer": [ { "type": "submit", "eventData": { "event": "select_item", "ecommerce": { "currency": "EUR", "value": 0, "items": [{ "item_id": { "getterFn": "({studyProgram}) => studyProgram ?? 'xxxxx'" }, "item_name": { "getterFn": "({studyProgram, businessUnitOptions}, store) => businessUnitOptions === 'none' ? 'Allgemeines Infomaterial' : store.getters['formLabelData/one']('studyProgram')" }, "coupon": "", "currency": "EUR", "discount": 0, "item_brand": "FS", "item_category": { "getterFn": "(formData, store) => formData.studyProgram ? [...new Set(formData.studyProgram.map((program) => store.getters['dynamicOptions/one']('studyProgram').find((option) => option.value === program).group))] : ''" }, "item_category2": "", "item_category3": "", "item_category4": "", "item_list_id": "", "item_list_name": "", "item_variant": "", "location_id": "", "price": 0, "quantity": 1 }] }, "eventData": { "data-t4-eventname": "select_item", "data-t4-formkey": { "specialKey": "key" }, "data-t4-type": "ecommerce", "data-t4-label": { "getterFn": "({street, streetNo, zip, city, country}) => ![street, streetNo, zip, city, country].some((val) => !val) ? 'postal' : 'online'" }, "data-t4-position": "", "data-t4-formstatus": "success", "data-t4-opt_in_email": { "sourceType": "value", "targetField": "optIn" }, "data-t4-opt_in_phone": false }, "form": { "city": { "sourceType": "value", "targetField": "city" }, "country": { "sourceType": "value", "targetField": "country" }, "email": { "sourceType": "value", "targetField": "email" }, "firstName": { "sourceType": "value", "targetField": "firstName" }, "lastName": { "sourceType": "value", "targetField": "lastName" }, "phone": { "sourceType": "value", "targetField": "phone" }, "street": { "sourceType": "value", "targetField": "street" }, "streetNumber": { "sourceType": "value", "targetField": "streetNo" }, "zip": { "sourceType": "value", "targetField": "zip" } } } } ], "dynamicOptions": [{ "endpoint": "https:\/\/student-application.k8s.corporateit-prod.iu-aws.de\/api\/locations?key=studySite&filter[units]={businessUnitOptions}&filter[programs]={studyProgram}&sort=name", "fieldWatchers": [ "studyProgram", "businessUnitOptions" ] }, { "endpoint": "https:\/\/student-application.k8s.corporateit-prod.iu-aws.de\/api\/programs?key=studyProgram&filter[units]={businessUnitOptions}&group=degree.name&labelVariant=lg&locale=de&idType=care_id", "fieldWatchers": [ "businessUnitOptions" ] } ], "footerSettings": { "submitText": "*Pflichtfeld, bitte vollständig ausfüllen", "submitLabel": "JETZT INFOMATERIAL ANFORDERN", "submitButtonType": "default" } }