Skip to content

Tokens for default value for Select options #252

Description

@tkcent

Tokens are not being accepted in the default value field for Select options. You need to click the Manual entry link to unhide the Default value field.

Problem appears to be the #default_value_pattern value, which is using an old token pattern. This affects the grid component as well.

$ diff select.inc select.inc.old

139c139
<       '#default_value_pattern' => '|^\[.*\]$',
---
>       '#default_value_pattern' => '^%.+\[.+\]$',

This is the Drupal issue where this was reported.

https://www.drupal.org/project/webform/issues/2473315

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions