Skip to content

Commit

Permalink
Merge pull request #18 from AnthonyDeSantiago/newUser
Browse files Browse the repository at this point in the history
The Questions user chooses are now pulled in sprout.js ready for data…
  • Loading branch information
AnthonyDeSantiago authored Sep 24, 2023
2 parents b57355b + ffba332 commit 7e2952d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/sprout.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ document.getElementById("new_user_form").addEventListener("submit", async functi
const passwordElement = document.getElementById("password");
const answer1Element = document.getElementById("answer1");
const answer2Element = document.getElementById("answer2");
const question1Element = document.getElementById('question1_selected');
const question2Element = document.getElementById("question2_selected");

var userEmail = userEmailElement.value;
var firstName = firstNameElement.value;
Expand All @@ -105,6 +107,11 @@ document.getElementById("new_user_form").addEventListener("submit", async functi
var password = passwordElement.value;
var answer1 = answer1Element.value;
var answer2 = answer2Element.value;
var question1 = question1Element.value;
var question2 = question2Element.value;

console.log("Question 1: " + question1);
console.log("Question 2: " + question2);

var isValid = true;

Expand Down

0 comments on commit 7e2952d

Please sign in to comment.