Skip to content

Tokens for default value for Select options #252

@tkcent

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

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