Issue Bug Closed

#101768TYPO3 Form - Page Variant Condition

Dennis Leibold 08/28/23, 10:00 updated 07/09/24, 15:19

Description

Bug in the description of cms-form
Page: https://docs.typo3.org/c/typo3/cms-form/main/en-us/I/Concepts/Variants/Index.html#hide-steps

Variant conditions for page types must have an additional condition, if formValues are checked. Else the condition will fail because the array key is not set yet.

Before:

type: Page
identifier: page-2
label: Second step
variants:
  -
    identifier: variant-2
    condition: 'formValues["checkbox-1"] == 1'
    renderingOptions:
      enabled: false

Fixed:

type: Page
identifier: page-2
label: Second step
variants:
  -
    identifier: variant-2
    condition: 'formValues && formValues["checkbox-1"] == 1'
    renderingOptions:
      enabled: false

Reviews 2