We can use ScriptRunner scripts in order to work with the values of TFO's custom field types.
What is the returned value, the original option name or its translation?
We have a Translated Dropdown List custom field with ID 10000
We add the following options and translations:
|Option name||English UK||Spanish|
We have an issue TEST-1 and we select the option "1" for our new translated custom field.
As an administrator, we create a new script like this:
The result of this script will be "1".
Therefore, the option name, without translate, will be returned.
What happens with Beahvior's scripts?
Besides the above configuration, we have a Single Line Text Field ("Text").
We create a new Behavior script like this:
Now open the edition or transition screen where this fields appear and change the selected value of the translated custom field.
We can see now the selected value into the text field. As we can see, the value returned by formFieldTFO.getValue() is the option name, without translate.
If we change the last line:
Now refresh the form and select another value. Now the returned value by formFieldTFO.getFormValue() is the option ID.