Goal not showing on Team Page

Options
I am sure I just missed this somewhere, but is there a way to show what the teams fundraising goal is on the Team's Page? 


http://www.redballoonevent.org/site/TR/Events/RedBalloonEvent?team_id=9096&pg=team&fr_id=1160
Tagged:

Comments

  • You can tap into the S43 tag to obtain the team goal value on that team page, then assign it onto a JS variable, and rewrite the placeholder as followed below:

    if($('#frStatus1').length){
       // var realGoal = "[[E48:[[S334:fr_id]]-[[S334:px]]:goal]]";

    var realGoal = "
    [[E43:[[S334:fr_id]]:goal-dollars:[[S334:team_id]]]]"
       $('#frStatus1 .amount-percentage-label').text('of '+realGoal);
    }



    regards,

    Daniel

    CORRECTION EDIT: the above one snippet contains commented S48 tag to get personal goal, for Team use the S43 tag, assign that as value of that "realGoal" variable

    [[E43:[[S334:fr_id]]:goal-dollars:[[S334:team_id]]]]
  • That worked out great!

Categories