I am having troubles using token replacement for the Time field
field type provided by the module Timefield in Rules.
The token pattern [entityform:field-name:value]
works just fine (it gets replaced by the raw "offset value" of the field - I'm using this field in an Entityform), but I just can't figure out how to display the formatted value.
I've followed directions in the pattern replacement help text, and tried different combinations of hyphens and low hyphens to no avail: [entityform:field-name:value_formatted]
, [entityform:field_name:value_formatted]
and [entityform:field-name:value-formatted]
- none work.
I've already posted a request for support in the Timefield issue queue, but was wondering if anyone here has had a similar issue, and can point me in the right direction? Thank you in advance.
EDIT: After some additional testing, I've discovered that the [entityform:field_name:value_formatted]
token DOES work in some situations, such as inside a Rules Component. It does NOT work if the Rule is triggered by the event After saving new content
(for nodes) or After saving a new entityform submission
(for Entityforms). Obviously this seems to be a bug, but I don't have the time to figure out where this problem happens. Apparently the value
token of the field is built right away, but the value_formatted
is not readily available when the Rule is triggered right after creating a new entity. Any thoughts?