The fundraising total for individual team members is not visible .

Options

On the roster  for one of my teams, the total raised is not listed next to each indiviual's name. It shows up on their individual profile, but not on the team roster. This problem is only ocurring on one of the teams on my teamraiser. Any thoughts on how to fix this?



Nick

Tagged:

Comments

  • Hi Nick,

     

    Try to see if within your TeamRaiser  > Edit

     

    Within that:

     

    Under "3. Select Event Options"   "Related Actions" > "Edit Advanced Options" > "a. Define Fundraising Options" > "10. Top Participant Status Indicator Displays Amounts:" > "Yes, display the amount raised in the Top Participant Status Indicator" checkbox

     

    EDIT: Also since you are saying within the team page -- might also want to check the setting # "18. Team Roster Displays Amount Raised by Participants" > "Yes, display the monetary amount raised by each participant in the Team Roster on the team pages" checkbox

     

    if the checkbox is checked or not. Might want to check it to display the amount.

     

    Either way those settings pertinent to displaying amount should be located within that Related Actions of that "3. Select Event Options"

     

    Hope it helps, let us know.

     

    regards,

    Daniel

  • Daniel Hartanto:

    Hi Nick,

     

    Try to see if within your TeamRaiser  > Edit

     

    Within that:

     

    Under "3. Select Event Options"   "Related Actions" > "Edit Advanced Options" > "a. Define Fundraising Options" > "10. Top Participant Status Indicator Displays Amounts:" > "Yes, display the amount raised in the Top Participant Status Indicator" checkbox

     

    EDIT: Also since you are saying within the team page -- might also want to check the setting # "18. Team Roster Displays Amount Raised by Participants" > "Yes, display the monetary amount raised by each participant in the Team Roster on the team pages" checkbox

     

    if the checkbox is checked or not. Might want to check it to display the amount.

     

    Either way those settings pertinent to displaying amount should be located within that Related Actions of that "3. Select Event Options"

     

    Hope it helps, let us know.

     

    regards,

    Daniel

    Hi Daniel,

     

    Thanks for the steps. I'm thinking there's some sort of bug going on. I went through the steps you suggested and all is well with those, but this one team roster will not show the amounts raised by the team members. All of our other teams are displaying properly. 

     

    Do you now of a feature that team captains can use to turn off the display? That's the only thing I can think of other than a bug. 

  • Nick Breaux:

    Daniel Hartanto:

    Hi Nick,

     

    Try to see if within your TeamRaiser  > Edit

     

    Within that:

     

    Under "3. Select Event Options"   "Related Actions" > "Edit Advanced Options" > "a. Define Fundraising Options" > "10. Top Participant Status Indicator Displays Amounts:" > "Yes, display the amount raised in the Top Participant Status Indicator" checkbox

     

    EDIT: Also since you are saying within the team page -- might also want to check the setting # "18. Team Roster Displays Amount Raised by Participants" > "Yes, display the monetary amount raised by each participant in the Team Roster on the team pages" checkbox

     

    if the checkbox is checked or not. Might want to check it to display the amount.

     

    Either way those settings pertinent to displaying amount should be located within that Related Actions of that "3. Select Event Options"

     

    Hope it helps, let us know.

     

    regards,

    Daniel

     

    Hi Daniel,

     

    Thanks for the steps. I'm thinking there's some sort of bug going on. I went through the steps you suggested and all is well with those, but this one team roster will not show the amounts raised by the team members. All of our other teams are displaying properly. 

     

    Do you now of a feature that team captains can use to turn off the display? That's the only thing I can think of other than a bug. 

     

    For the record, the reason for this is that there's an SDP that controls the maximum amount of people on a team. If the total amount of people on your team exceeds that SDP, the total amount raised doesn't display on the team roster. You can work with support to have that increased based on your needs. 

  • @Brandy Reppy:


    For the record, the reason for this is that there's an SDP that controls the maximum amount of people on a team. If the total amount of people on your team exceeds that SDP, the total amount raised doesn't display on the team roster. You can work with support to have that increased based on your needs.

    We recently had the same problem where a team had “too many participants” and the participant totals stopped displaying to the right of their name. Here is some code that can be used to solve this (can be put in the specific team's code area or in the Default Team Page code area):

    <!-- ################### -->
    <style>
    .ptcpt-row {
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    }
    </style>


    <script>

    const luminateApiKey = 'YOUR_LO_API_KEY';
    const luminateBaseUrl = 'YOUR_BASE_URL'; // (for example: https://give.choa.org/site/)

    const trId = '[[S334:fr_id]]';

    let totalRaised = 0;
    const totalDollars = parseInt('[[E43:[[S334:fr_id]]:dollars:[[S334:team_id]]]]'.replace('$', '').replace(',', ''));

    document.addEventListener('DOMContentLoaded', () => {

    const rosterContainer = document.querySelector('.team-roster-participant-container');
    const rightbarContainer = document.querySelector('.tr-status-indicator-container:has(.team-roster-participant-container)');

    async function luminateRestRequest(servlet, data) {
    let requestData = ''
    if (data) {
    requestData += '&' + data
    }

    let response = await fetch(
    `${luminateBaseUrl}${servlet}?v=1.0&api_key=${luminateApiKey}&response_format=json&mode=cors&response_format=json&suppress_response_codes=true${data ? '&' + data : ''}`,
    {
    method: 'POST'
    }
    );

    let jsonResponse = await response.json();
    return jsonResponse;
    }

    luminateRestRequest('CRTeamraiserAPI', `method=getParticipants&list_page_size=500&list_page_offset=0&last_name=%25%25%25&fr_id=${trId}`)
    .then(data => {

    data.getParticipantsResponse.participant.forEach(pcptData => {
    if (pcptData.teamId === '[[S334:team_id]]') {

    const tMemberNameDiv = document.querySelector(`.team-roster-participant-name-without-raised:has(a[href*="px=${pcptData.consId}"])`);
    const pcptRaisedDiv = document.createElement('div');
    pcptRaisedDiv.classList.add('team-roster-participant-raised');
    let dollarsRaised = Math.floor(pcptData.amountRaised / 100);
    totalRaised += dollarsRaised;
    pcptRaisedDiv.textContent = `$${dollarsRaised}`; //
    if (tMemberNameDiv) {
    tMemberNameDiv.classList.remove('team-roster-participant-name-without-raised');
    tMemberNameDiv.classList.add('team-roster-participant-name');
    tMemberNameDiv.after(pcptRaisedDiv);
    }

    }
    })

    const footerRow = document.createElement('div');
    footerRow.innerHTML = `
    <div class="team-roster-participant-name">Team Gifts</div>
    <div class="team-roster-participant-raised">$${totalDollars - totalRaised}</div>`
    footerRow.classList.add('team-roster-participant-row');
    footerRow.classList.add('clearfix');
    rosterContainer?.appendChild(footerRow);

    });

    const headerRow = document.createElement('div');
    headerRow.innerHTML = `
    <div class="team-roster-raised-label">
    Raised
    </div>`

    headerRow.classList.add('team-roster-title-container');
    if (rosterContainer) {
    rightbarContainer?.insertBefore(headerRow, rosterContainer);
    }

    })
    </script>

Categories