Need Changes to Angular JS Website Script
Budget: $10 – $150 USD
I need some changes made to a questionnaire script at https://www.bestdance.tv/new-questionnaire
When creating a question, add a 'm/f' check box that I will select to indicate if the question will be a 'm/f' question. If the box is selected, then when creating the answers, display 2 radio buttons for 'm' and 'f' to indicate if the answer will be 'm' or 'f'. Then on the m/f traits page in the questionnaire, you will also display all 'm/f' questions.
Then in the results of the questionnaire you will calculate the percentages of 'm' vs 'f'. The way to calculate this is to get the total number of 'm' traits/answers and the total number of 'f' traits/answers selected. On the m/f traits page, all the traits on the left are all 'm' traits, and all the opposite traits on the right are all 'f' traits.
Then from the m/f questions, get the total number of 'm' answers selected and total 'f' answers selected. Then add up the total number of 'm' traits/answers and total 'f' traits/answers to get the m/f percentages. So for example, if there was 3 'm' traits selected and 2 'f' traits selected and 3 'm' answers selected and 2 'f' answers selected, then the total 'm' traits/answers would be 3+3=6 and the total 'f' traits/answers would be 2+2=4. So then the percentages would be (6/10) 60% 'm' and (4/10) 40% 'f'.
------------
In 'add question' page, add type 'parent/partner behavior'. This type will be single choice radio button question, and will have 3 separate 'description' fields, one for father, mother, and partner, where I will enter the different versions of the question that will be displayed depending if it is referring to father, mother, or partner. The answers will be the same for all 3. It will also display all traits in database with check boxes, and I will select which traits that question will be associated with.
Then in the questionnaire, after the father's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the father's traits page and display the questions version for the father.
Then after the mother's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the mother's traits page and display the questions version for the mother.
Then after the partner's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the partner's traits page and display the questions version for the partner.
Then in the results it already calculates the percentage match between the opposite gender parent's and the partner's traits. You will include the answers to these questions when calculating the partner match percentage. For example, if the opposite gender parent has 5 traits selected and 5 of the 'parent/partner behavior' answers selected, then that is a total of 10. Then calculate how many of the traits/behaviors are selected for the partner. If 3 of the same traits and 3 of the same behaviors are also selected for the partner's traits/behaviors, then that would be 6 out of 10 so that would be 60%
-------------
When adding/editing a 'personality' character, can you remove the 'add behavior' button and replace it with a list displaying all questions/answers in the database and I will select which answers will be associated with that 'personality' character. Then in the results, when calculating the 'personality' character percentages, you will include the associated answers. So for example, if the 'personality' character has 5 traits and has 5 associated answers which makes a total of 10, and 3 traits were selected and 3 associated answers were selected in the questionnaire, then that would be 6 out of 10 which would be 60%.
When creating a question, add a 'm/f' check box that I will select to indicate if the question will be a 'm/f' question. If the box is selected, then when creating the answers, display 2 radio buttons for 'm' and 'f' to indicate if the answer will be 'm' or 'f'. Then on the m/f traits page in the questionnaire, you will also display all 'm/f' questions.
Then in the results of the questionnaire you will calculate the percentages of 'm' vs 'f'. The way to calculate this is to get the total number of 'm' traits/answers and the total number of 'f' traits/answers selected. On the m/f traits page, all the traits on the left are all 'm' traits, and all the opposite traits on the right are all 'f' traits.
Then from the m/f questions, get the total number of 'm' answers selected and total 'f' answers selected. Then add up the total number of 'm' traits/answers and total 'f' traits/answers to get the m/f percentages. So for example, if there was 3 'm' traits selected and 2 'f' traits selected and 3 'm' answers selected and 2 'f' answers selected, then the total 'm' traits/answers would be 3+3=6 and the total 'f' traits/answers would be 2+2=4. So then the percentages would be (6/10) 60% 'm' and (4/10) 40% 'f'.
------------
In 'add question' page, add type 'parent/partner behavior'. This type will be single choice radio button question, and will have 3 separate 'description' fields, one for father, mother, and partner, where I will enter the different versions of the question that will be displayed depending if it is referring to father, mother, or partner. The answers will be the same for all 3. It will also display all traits in database with check boxes, and I will select which traits that question will be associated with.
Then in the questionnaire, after the father's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the father's traits page and display the questions version for the father.
Then after the mother's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the mother's traits page and display the questions version for the mother.
Then after the partner's traits page, you will only display the 'parent/partner behavior' questions for the associated traits that were selected on the partner's traits page and display the questions version for the partner.
Then in the results it already calculates the percentage match between the opposite gender parent's and the partner's traits. You will include the answers to these questions when calculating the partner match percentage. For example, if the opposite gender parent has 5 traits selected and 5 of the 'parent/partner behavior' answers selected, then that is a total of 10. Then calculate how many of the traits/behaviors are selected for the partner. If 3 of the same traits and 3 of the same behaviors are also selected for the partner's traits/behaviors, then that would be 6 out of 10 so that would be 60%
-------------
When adding/editing a 'personality' character, can you remove the 'add behavior' button and replace it with a list displaying all questions/answers in the database and I will select which answers will be associated with that 'personality' character. Then in the results, when calculating the 'personality' character percentages, you will include the associated answers. So for example, if the 'personality' character has 5 traits and has 5 associated answers which makes a total of 10, and 3 traits were selected and 3 associated answers were selected in the questionnaire, then that would be 6 out of 10 which would be 60%.