Just went through this myself, so I feel your pain It’ll work if
your
observe_field and the field you’re observing are in a partial and you
pass
the variable in as a local.
The subject pretty much says it all: I can’t get
observe_field to take a variable for a field name
Just went through this myself, so I feel your pain It’ll work if
your
observe_field and the field you’re observing are in a partial and you
pass
the variable in as a local. I’ve included the my code below.