That doesn't work either unfortunately. Couple of things I've noticed.
One, existing records if re-saved do not get macros applied, only new records.
Two, the documentation here https://docs.kentico.com/display/K81/Reference+-+Field+editor#Reference-Fieldeditor-Settingdefaultformfieldvaluesthroughmacros says macros can be applied on form submission, this does not appear to be the case as I was unable to get it to work using the example in the documentation {% CurrentUser %}
. I was however able to get a default value from a macro applied on initial load using the "Edit Value" method. This however does not work as I need the value to be calculated either on dependent field change or on form submit.
My workaround was to use a drop down list form control and use the macro (or SQL) option in the "Data Source" property to select only a single value (from a table or in-line) conditional upon other form field values).
if (CustomerEvaluating == "Evaluating") {
return "eval@domain.com"
}
else {
return "cust@domain.com"
}
Ideally, the textbox form control should allow for macro expressions to set the value conditionally (not just as default) the same way drop-down/multi-select form controls allow.