I have posted this question on drupal.org (via a comment titled "field modification triggered by saving action"), but I realized that the thread is more than five years old. So I reproduce here the question made there:
field modification triggered by saving action
I need to modify a field, but this change has to be triggered when saving the term and it depends on the value of another field, let me explain ...
term
- field 1: filled with options A/B/C
- field 2:
<info>
random_name
I save and if value in
Field 1 is A, then value in Field 2 must change to "Source: random_name"
Field 1 is B, then value in Field 2 must change to "Destination: random_name"
Field 1 is C, then value in Field 2 must change to "Product: random_name"
Note that the label <info>
is the one that must change.