
renderingOptions:
  submitButtonLabel: 'Request download'
  honeypot:
    enable: true
    formElementToUse: Honeypot
type: Form
identifier: gatedUpload
label: GatedUpload
prototypeName: standard
variants:
  -
    condition: 'siteLanguage("languageId") == "0"'
    renderingOptions:
      submitButtonLabel: 'Download anfragen'
    identifier: gatedUpload-0
    label: GatedUpload
  -
    identifier: Confirmation-0
    condition: 'siteLanguage("languageId") == "0"'
    finishers:
      -
        options:
          subject: 'Ihr Download steht bereit'
          recipientAddress: '{email}'
          recipientName: ''
          senderAddress: download@weytec.com
          senderName: WEYTEC
          replyToAddress: ''
          carbonCopyAddress: ''
          blindCarbonCopyAddress: ''
          format: html
          attachUploads: false
          templatePathAndFilename: 'EXT:t3template/Resources/Private/Form/Frontend/Templates/Finishers/Email/EmailToSender/{@format}.html'
        identifier: EmailToSender
      -
        options:
          subject: 'Neuer Gated Download'
          recipientAddress: info.ch@weytec.com
          recipientName: WEYTEC
          senderAddress: download@weytec.com
          senderName: WEYTEC
          replyToAddress: ''
          carbonCopyAddress: ''
          blindCarbonCopyAddress: ''
          format: plaintext
          attachUploads: false
          translation:
            language: Default
          templatePathAndFilename: 'EXT:t3template/Resources/Private/Form/Frontend/Templates/Finishers/Email/EmailToReceiver/{@format}.html'
        identifier: EmailToReceiver
      -
        identifier: DataToCsvFinisher
        options:
          csvFilename: de.gated
      -
        identifier: Confirmation
        options:
          message: 'Ihr Download steht bereit. Sie erhalten den Link per E-Mail.'
finishers:
  -
    options:
      subject: 'Your download is ready'
      recipientAddress: '{email}'
      recipientName: ''
      senderAddress: download@weytec.com
      senderName: WEYTEC
      replyToAddress: ''
      carbonCopyAddress: ''
      blindCarbonCopyAddress: ''
      format: html
      attachUploads: false
      templatePathAndFilename: 'EXT:t3template/Resources/Private/Form/Frontend/Templates/Finishers/Email/EmailToSender/{@format}.html'
    identifier: EmailToSender
  -
    options:
      subject: 'New gated download'
      recipientAddress: info.ch@weytec.com
      recipientName: WEYTEC
      senderAddress: download@weytec.com
      senderName: WEYTEC
      replyToAddress: ''
      carbonCopyAddress: ''
      blindCarbonCopyAddress: ''
      format: plaintext
      attachUploads: false
      translation:
        language: Default
      templatePathAndFilename: 'EXT:t3template/Resources/Private/Form/Frontend/Templates/Finishers/Email/EmailToReceiver/{@format}.html'
    identifier: EmailToReceiver
  -
    identifier: DataToCsvFinisher
    options:
      csvFilename: en.gated
  -
    options:
      message: 'Your download is ready. You will receive the link by email.'
      contentElementUid: ''
    identifier: Confirmation
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        defaultValue: ''
        type: Email
        identifier: email
        label: 'Email *'
        properties:
          fluidAdditionalAttributes:
            required: required
            placeholder: 'Email *'
        variants:
          -
            identifier: email-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'E-Mail *'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'E-Mail *'
        validators:
          -
            identifier: EmailAddress
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: country
        label: 'Country *'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Country *'
            required: required
        variants:
          -
            identifier: country-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Land *'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'Land *'
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: company
        label: 'Company (optional)'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Company (optional)'
        variants:
          -
            identifier: company-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Unternehmen (optional)'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'Unternehmen (optional)'
      -
        defaultValue: ''
        type: Text
        identifier: lastname
        label: 'Last name (optional)'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Last name (optional)'
        variants:
          -
            identifier: lastname-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Nachname (optional)'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'Nachname (optional)'
      -
        defaultValue: ''
        type: Text
        identifier: firstname
        label: 'First name (optional)'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'First name (optional)'
        variants:
          -
            identifier: firstname-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Vorname (optional)'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'Vorname (optional)'
      -
        defaultValue: ''
        type: Text
        identifier: phone
        label: 'Telephone nr. (optional)'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Telephone nr. (optional)'
        variants:
          -
            identifier: phone-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Telefon (optional)'
            properties:
              fluidAdditionalAttributes:
                placeholder: 'Telefon (optional)'
      -
        defaultValue: ''
        type: Hidden
        identifier: hidden-f
        label: f
        variants:
          -
            identifier: hide-1
            label: f
            renderingOptions:
              enabled: true
            condition: 'stepType == "SummaryPage" || finisherIdentifier in ["EmailToSender", "EmailToReceiver"]'
      -
        defaultValue: ''
        type: Hidden
        identifier: hidden-fn
        label: fn
        variants:
          -
            identifier: hidden-fn-1
            label: fn
            renderingOptions:
              enabled: true
            condition: 'stepType == "SummaryPage" || finisherIdentifier in ["EmailToSender", "EmailToReceiver"]'
      -
        label: Inhaltselement
        properties:
          contentElementUid: '1695'
        type: ContentElement
        identifier: privacy-contentelement-1
      -
        type: Checkbox
        identifier: privacy-checkbox-1
        label: 'I have taken due note of the privacy statement and agree that the data I have provided may be collected and stored electronically.'
        properties:
          value: 'yes'
          fluidAdditionalAttributes:
            required: required
          elementDescription: ''
        validators:
          -
            identifier: NotEmpty
        variants:
          -
            identifier: privacy-checkbox-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Ich habe die Datenschutzerklärung zur Kenntnis genommen und bin damit einverstanden, dass die von mir angegebenen Daten elektronisch erhoben und gespeichert werden.'
          -
            identifier: privacy-checkbox-hidden-in-mails
            condition: 'finisherIdentifier in ["EmailToSender", "EmailToReceiver"]'
            renderingOptions:
              enabled: false
      -
        type: Checkbox
        identifier: expert-checkbox-1
        label: 'Request a non-binding consultation with a WEYTEC expert.'
        properties:
          value: 'yes'
          elementDescription: ''
        variants:
          -
            identifier: expert-checkbox-0
            condition: 'siteLanguage("languageId") == "0"'
            label: 'Unverbindliche Beratung durch einen WEYTEC Spezialisten erwünscht.'
            properties:
              value: 'ja'
      -
        type: Zwei14captcha
        identifier: 65c91c8f-bc04-41af-9b65-7867bdcadd1e1
        label: '65c91c8f-bc04-41af-9b65-7867bdcadd1e'
        variants:
          -
            identifier: captcha-hidden-in-mails
            condition: 'finisherIdentifier in ["EmailToSender", "EmailToReceiver"]'
            renderingOptions:
              enabled: false
        validators: 
          -
            identifier: Zwei14captcha
