Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Questions user chooses are now pulled in sprout.js ready for data… #18

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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