D8WFC - Custom Data + Wizard Pages + Live Payment

  • 1 Current: Wizard Page
  • 2 Payment
  • 3 Complete
YAML
wizard12:
  '#type': wizard_page
  '#title': 'Wizard Page'
  '#prev_button_label': 'Previous Page'
  '#next_button_label': 'Next Page'
  civicrm_1_contact_1_contact_first_name:
    '#type': textfield
    '#contact_type': individual
    '#form_key': civicrm_1_contact_1_contact_first_name
    '#extra':
      width: 20
    '#title': 'First Name'
  civicrm_1_contact_1_contact_last_name:
    '#type': textfield
    '#contact_type': individual
    '#form_key': civicrm_1_contact_1_contact_last_name
    '#extra':
      width: 20
    '#title': 'Last Name'
  civicrm_1_contact_1_email_email:
    '#type': email
    '#form_key': civicrm_1_contact_1_email_email
    '#extra':
      width: 20
    '#title': Email
  civicrm_1_contact_1_cg1_custom_2:
    '#type': civicrm_options
    '#data_type': String
    '#extra':
      civicrm_live_options: 1
      items: |
        Vanilla|Vanilla
        Chocolate|Chocolate
        
      aslist: true
    '#form_key': civicrm_1_contact_1_cg1_custom_2
    '#options':
      Vanilla: Vanilla
      Chocolate: Chocolate
    '#title': 'Cookie preference'
    '#default_option': null
    '#default_value': null
contribution_pagebreak:
  '#type': wizard_page
  '#title': Payment
  '#prev_button_label': 'Previous Page'
  '#next_button_label': 'Next Page'
  '#form_key': contribution_pagebreak
  civicrm_1_contribution_1_contribution_total_amount:
    '#type': number
    '#data_type': Money
    '#extra':
      field_prefix: $
      point: .
      separator: ','
      decimals: 2
      min: 0
    '#form_key': civicrm_1_contribution_1_contribution_total_amount
    '#title': 'Contribution Amount'
  civicrm_1_contribution_1_contribution_contribution_page_id:
    '#type': hidden
    '#expose_list': true
    '#empty_option': None
    '#extra':
      hidden_type: hidden
    '#form_key': civicrm_1_contribution_1_contribution_contribution_page_id
    '#value': '2'
    '#title': 'Contribution Page'