Problem/Motivation

When trying to replicate the Calculated entity field model (eca_lib_0022), the Tamper: Math plugin Value field does not accept tokens such as [node:field_length:value] or [node:field_width:value] for that matter, it refuses to save the form and displays an error.

Strangely, if one opens the recipe's model with WM, the Value field appears to be empty but it is possible to save the model.

WM UI

CommentFileSizeAuthor
tamper-math--value-field.jpg359.47 KBbisonbleu

Issue fork modeler-3581055

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

bisonbleu created an issue. See original summary.

bisonbleu’s picture

Issue summary: View changes

jurgenhaas made their first commit to this issue’s fork.

  • jurgenhaas committed dc8f514b on 1.0.x
    #3581055 Number fields now accept tokens via ContentEditableField
    

jurgenhaas changed the visibility of the branch 3581055-tamper-math-plugin to hidden.

jurgenhaas’s picture

Version: 1.0.0-rc1 » 1.0.x-dev
Status: Active » Fixed
Related issues: +#3582649: Declare token support for most config fields

There have been 2 issues coming together:

The UI used number field, which don't accept tokens on a HTML level, that's where the values have been lost.

Also, tamper fields haven't declared their support for tokens. That's been fixed in the related issue.

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.