
renderingOptions:
  submitButtonLabel: 'Register now'
type: Form
identifier: registrierungsformularMyWEYTEC
label: 'Registrierungsformular myWEYTEC'
prototypeName: standard
finishers:
  -
    options:
      table: fe_users
      mode: insert
      databaseColumnMappings:
        pid:
          value: '126'
        disable:
          value: '1'
        crdate:
          value: '{__currentTimestamp}'
        tstamp:
          value: '{__currentTimestamp}'
      elements:
        text-1:
          mapOnDatabaseColumn: name
        text-2:
          mapOnDatabaseColumn: first_name
        text-3:
          mapOnDatabaseColumn: company
        text-4:
          mapOnDatabaseColumn: username
        text-5:
          mapOnDatabaseColumn: email
        text-6:
          mapOnDatabaseColumn: country
        password-1:
          mapOnDatabaseColumn: password
    identifier: SaveToDatabase
  -
    options:
      subject: 'New registration myWEYTEC ({text-2} {text-1}, {text-3})'
      recipientAddress: marketing.group@weytec.com
      recipientName: 'WEY Group AG'
      senderAddress: auto.sender@weytec.com
      senderName: ''
      replyToAddress: ''
      carbonCopyAddress: ''
      blindCarbonCopyAddress: ''
      format: html
      attachUploads: true
      translation:
        language: default
      templateName: '{@format}.html'
      templateRootPaths:
        20: 'EXT:t3template/Resources/Private/Form/RegistrierungsformularMyWEYTEC/'
    identifier: EmailToReceiver
  -
    options:
      message: 'Please be patient and login to myWEYTEC after one working day.'
    identifier: Confirmation
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Neue Seite'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        defaultValue: ''
        type: Text
        identifier: text-1
        label: Name
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Name *'
            required: required
          elementDescription: ''
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: text-2
        label: 'First name'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'First name *'
            required: required
          elementDescription: ''
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: text-3
        label: Company
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Company *'
            required: required
          elementDescription: ''
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: text-6
        label: Country
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Country *'
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: text-4
        label: Email
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Email *'
            required: required
          elementDescription: ''
        validators:
          -
            identifier: EmailAddress
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Text
        identifier: text-5
        label: 'Repeat email'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Repeat email *'
            required: required
        validators:
          -
            identifier: NotEmpty
          -
            identifier: EmailAddress
      -
        defaultValue: ''
        type: Password
        identifier: password-1
        label: Password
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Password *'
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        type: Password
        identifier: password-2
        label: 'Repeat password'
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Repeat password *'
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        label: Inhaltselement
        properties:
          contentElementUid: '1695'
        type: ContentElement
        identifier: contentelement-1
      -
        type: Checkbox
        identifier: 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:
          elementDescription: ''
          fluidAdditionalAttributes:
            required: required
        validators:
          -
            identifier: NotEmpty
      -
        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
