Figured this out if anyone else needs it.
var vp1 = parseInt(docData2['Primary_1s']) + parseInt(docData2['Player_Secondary_1s']) + parseInt(docData2['Player_Secondary_2s']) + parseInt(docData2['Player_Secondary_3s']);
docData['Player_VP_1s'] = vp1;
$('#Player_VP_1s').text(docData['Player_VP_1s']);
Tried a bunch of stuff and console.log("Snapshot received: ", docRef3) to see if its hitting the data at all and it looks like this (3rd) page cant pull the data at all like th (2nd one can).
This is what I got and it's not pulling still.
packageDb.collection('360005BB94').doc('fields').onSnapshot(function(docRef3)
{
if (docRef3.exists)
{
docData3 = docRef3.data();
console.log("Retrieving data: ", docData3);
$('#Player_CP_1s').text(docData3['Player_CP_1s'])...
I got this working from my main page to a second one but then I can not seem to get it to work on a 3rd page. Would anything need to change to pick the data up on a 3rd page?
I was wondering if there is a way to add score fields. Basically what I am trying to do is take these and add them together.
$('#Primary_1s').text(docData['Primary_1s']);
$('#Player_Secondary_1s').text(docData['Player_Secondary_1s'])...