data.js Calculation Problem

I had linked the PAC collection to the dynamic page, however, when I submitted answers, the function did not calculate properly. Only the “afresult” has a valid result and the other four are just blanks. Moreover, some of the data in the collection go missing (ans_30,ans_28, etc,.)
What could the problem be ?

More info, when I submit the answer in preview mode with verbose, the answer was calculated correctly " “afresult”:57.5,“seresult”:67.5,“agresult”:52.5,“sdresult”:65,“result”:2 " However, in the database, the results are not saved to their fields that they are still blanks.

Questionnaire Page :
Result Page :