af/field/calculated/update_value
This Javascript action will be triggered when a calculated field has been updated with a new value.
// This will intercept the rendered calculated field and insert the markup
// into an element with the id `#preview-container`
acf.addAction( 'af/field/calculated/value_updated/name=FIELD_NAME', function( value, field, form ) {
$('#preview-container').html(value);
});
Modifiers
af/field/calculated/update_value
Applies to all fields.af/field/calculated/update_value/name=FIELD_NAME
Applies to fields with specific name.af/field/calculated/update_value/key=FIELD_KEY
Applies to fields with specific key.