Problem/Motivation

I configure the Submit button on a node type to use the token...

node-form-overrides-button-text-token-configuration

The resultant token is not replaced in the node edit form (show here in the Gin Dark theme)...

node-form-overrides-button-text-token-in-use

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sirclickalot created an issue. See original summary.

nickolaj’s picture

Status: Active » Needs review
StatusFileSize
new2.22 KB

1. For the "Create Node Submit Button" (`insert_button`), apply `$token_service->replacePlain()` to process tokens.
2. For the "Update Node Submit Button" (`update_button`), apply `$token_service->replacePlain()` to process tokens.
3. Added description text to both button label fields in the admin form to indicate that tokens are supported.

The fix maintains backward compatibility - if the token module is not installed, the button labels are used as-is without token processing.

loze’s picture

Status: Needs review » Fixed

Thanks. This is in the latest dev version

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.