Has anyone been able to do this?

I have a field that uses the slider to generate a number and an other field "integer" without the slider that I have a number set too.

I'm using the Math field to multiply these two numbers.
But I can't seem to get the value for the slider to work.

This is the format that Math is looking for: [$field_name:$delta:$column] this is what I've change the settings to, to get the value [$field_myfield:0:field_myfield_value]

How do I get the value for the field?

Thanks,
Stephen

Comments

sskully created an issue. See original summary.

draenen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -slider value

What module are you using to create the slider?

Also the 'column' portion of the token should not include the field name (value instead of field_myfield_value). Try [field_myfield:0:value] or, because 0 and value are the defaults, just use [field_myfield].

sskully’s picture

Hi draenen,
Thanks for responding, I'm using SliderField.
https://www.drupal.org/project/sliderfield.

When I use [field_fieldname] I receive this error:

Math error: Could not evaluate math expression 15 + [field_eq_rating].

Thanks for your help.

Stephen