Execute logic in Task Form (Action Center)

I am trying to execute a script in Task Form , to calculate the value of text field (b) depending on the values of other fields (a1+a2) .

I add a logic to field (b) like this :

when I preview the form everything works fine , and (b) shows the sum of a1+a2
but when I send the form as a task to the action center , the script is not executed , why ??

This is the source code :
Test_DynamicFields.xaml (6.8 KB)
where :
“dependencies”: {
“UiPath.FormActivityLibrary”: “[1.1.6]”,
“UiPath.Persistence.Activities”: “[1.1.4]”,
“UiPath.System.Activities”: “[20.4.0]”

I figure out that the issue is not in the script , but it is because of the content of data in preview holds the values of all components , but in action center holds the properties of the same component , why that occurs ?

@FarahEtmeh Javascript is unfortunately disabled in ActionCenter for security reasons.
We are working on this, but JS would not be supported in forms in public preview.