Problem/Motivation

It would be good and practical to have tokens available on field conditions (like min, max, etc)

Steps to reproduce

Using a Field Validation rule, insert on the text box tokens related to the current node being evaluated.

Proposed resolution

Change the FieldValidationRule, function validate() in order to scan for tokens and replace them.

Remaining tasks

Develop the changes.

User interface changes

None, or at least a help line saying that tokens can be used.

CommentFileSizeAuthor
#2 3255775-token_support.patch1.33 KBjrochate

Comments

jrochate created an issue. See original summary.

jrochate’s picture

StatusFileSize
new1.33 KB

I have made a simple patch on DateRange and only for nodes.

This is a simple idea to make it grow to another use cases.

If I need more validations with token I will keep updating this.

g089h515r806’s picture

I made some changes for the patch.
Committed.

g089h515r806’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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