# Issues with the Felt Stigma and Psychosocial Wellbeing Forms

**URL:** <https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616>\
**Category:** GBVIMS\
**Tags:** v2-0\
**Created:** [October 6, 2022, 2:18pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616 "2022-10-06T14:18:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![megan.obrien](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@megan.obrien](https://support.primero.org/forum/u/megan.obrien)\
**Post date:** [October 6, 2022, 2:18pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/1 "2022-10-06T14:18:06Z")

</div>

I have identified several issues with the Felt Stigma and Psychosocial Wellbeing case forms in GBVIMS+ v2. First, the dropdown menu for session number does not allow me to reorder the numbers so they are sequential (even though they were entered in order when the drop down was created).

Most importantly, the automatic calculations for these forms are still not implemented in Jordan, and they are not working in other instances. The total score works, but the “Score” that is meant to be the average is not calculating correctly.

 ![Felt Stigma Drop Down](https://support.primero.org/uploads/primero/original/1X/9af5199c6851e415a6e5a2f432c7e5ad0b7bdd61.png)  
 ![Felt Stigma Scores](https://support.primero.org/uploads/primero/original/1X/c3e2f6c460fc9bd09ac67795c22ea0fa432e0027.png)

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [October 10, 2022, 7:35pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/2 "2022-10-10T19:35:06Z")

</div>

The calculations will not work in Jordan since that was deployed before the work was completed. New implementations going forward from now should work. If this is not the case please let us know which instance

---

<div class="post-metadata">

**Author:** ![megan.obrien](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@megan.obrien](https://support.primero.org/forum/u/megan.obrien)\
**Post date:** [October 11, 2022, 1:20pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/3 "2022-10-11T13:20:03Z")

</div>

Hi Ian! Thank you for your response! I had several other issues noted in the comment that I want to make sure are clear, too, as they are _not_ specific to Jordan. The automatic calculations are not working in any instance that I can test. The “Score” that is meant to be the average is not calculating correctly. Thank you!

---

<div class="post-metadata">

**Author:** ![megan.obrien](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@megan.obrien](https://support.primero.org/forum/u/megan.obrien)\
**Post date:** [October 11, 2022, 7:44pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/4 "2022-10-11T19:44:05Z")

</div>

And, what we can do about getting this feature to Jordan since they paid for the development of the calculations? How we can make that happen? Thank you!

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [October 14, 2022, 2:48pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/5 "2022-10-14T14:48:49Z")

</div>

We will set up a new instance with the default GBV templates to test the calculations. The options re-ordering within a subform was released with **v2.4.3** on 1 September 2022 so the first thing to check is the version you are using. If its greater than **v2.4.3** then check the re-ording is working more generally in the instance (in main forms not sub forms for example). If it is not then we will need to work out why

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [October 18, 2022, 7:13pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/6 "2022-10-18T19:13:27Z")

</div>

So we have installed the latest templates on the GBV global demo and the calculations seem to work fine. Please can you check that?

---

<div class="post-metadata">

**Author:** ![megan.obrien](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@megan.obrien](https://support.primero.org/forum/u/megan.obrien)\
**Post date:** [October 18, 2022, 8:05pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/7 "2022-10-18T20:05:55Z")

</div>

Thanks for the update, Ian! I’ve tested the GBV global demo and have found the following:

“Total Score” is working.

“Score” is not working. For example, when I have input the following score (0,1,1), the Score that comes out is 0. The answer should be ((0+1+1)/3) = .67. Or, when I have (1,0,1,0,4,3,1,1,0,2) the Score is reading 1. It should be 1.3.

I hope this testing helps!

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [October 19, 2022, 6:36pm UTC](https://support.primero.org/forum/t/issues-with-the-felt-stigma-and-psychosocial-wellbeing-forms/616/8 "2022-10-19T18:36:19Z")

</div>

The way the average calculation currently works is that it always rounds down and returns the largest integer (not decimal) less than or equal to a given number. In technical terms it calls the **`Math.floor()`** function.

This means we expect the following results on any calculated number

```auto
console.log(Math.floor(5.95));
// expected output: 5

console.log(Math.floor(5.05));
// expected output: 5

console.log(Math.floor(5));
// expected output: 5

```

therefore ((0+1+1)/3) = .67 should return 0 and ((1,0,1,0,4,3,1,1,0,2)/10) = 1.3 should return 1
