Error on setting step for cancel button

Created on 11 March 2024, 8 months ago

Hi.

We are trying to set a step for a cancel button "Set a step to go when cancel is clicked". When we try to save, an error is shown:

Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type for config element forms_steps.forms_steps.nueva_inscripcion:steps.seleccionar_participante.cancelStep in Drupal\Core\Config\StorableConfigBase->castValue() (line 213 of core/lib/Drupal/Core/Config/StorableConfigBase.php).

Drupal\Core\Config\StorableConfigBase->castValue() (Line: 218)

We haven't really able to find out why.

Diego

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain dbrouard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dbrouard
  • 🇮🇳India dineshkumarbollu

    @dbrouard

    can you provide more info on steps to reproduce and complete error, i will try to test in system.

  • 🇪🇸Spain dbrouard

    Sure, we are using Drupal 9.5.10, form_steps 8.x-1.5+13-dev and cancel_button 8.x-1.3+5-dev

    1. Create new forms steps /admin/config/workflow/forms_steps/add
    2. Add and configure three steps.
    3. We want to use the cancel in step one in order to skip step two, so we edit the step one cancel button, override the label and set the route to step 3:

    It shows this error:

    Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type for config element forms_steps.forms_steps.test:steps.step_1.cancelStep in Drupal\Core\Config\StorableConfigBase->castValue() (line 213 of core/lib/Drupal/Core/Config/StorableConfigBase.php).

Production build 0.71.5 2024