Adding dynamic content to a survey

Options
Hello, I'm trying to work out if I can add dynamic content to a web survey. 

Specifically, I'd like to tally up the number of members in a group (already created and set to be rebuildable once a day) and include the number of people in that group (or, even better, the goal number of people in the group - the actual number in the group) in the html section at the top. 


For example:


" Join the XX number of people who have already signed our petition"

or


"We still need XX signatures!"


Does anyone know if this is possible?


 
Tagged:

Comments

  • Try [[S450:GROUP_ID:count]] tag to display members count of a group.
  • Thank you! Thank you!!



    #impressyourcolleagues101



    Excellent!


    Sent from my iPhone. 


  • Erik Leaver
    Erik Leaver Blackbaud Employee
    Ancient Membership 250 Likes 100 Comments Photogenic

    Sarah Kershaw:

    Hello, I'm trying to work out if I can add dynamic content to a web survey. 

    Specifically, I'd like to tally up the number of members in a group (already created and set to be rebuildable once a day) and include the number of people in that group (or, even better, the goal number of people in the group - the actual number in the group) in the html section at the top. 


    For example:


    " Join the XX number of people who have already signed our petition"

    or


    "We still need XX signatures!"


    Does anyone know if this is possible?


     

    The S-337 tag can be used for progress fields for teamraiser, donations and advocacy alerts. 


    Since your example asked for "people who signed our petition" I think Advocacy should work. 


    Here is the documentation on the progress meter s-tag that you could use: 


    Syntax 

    [[S337:application type:objectId:subObjectId:consId:goalAmount:progress image id:text color]] 


    Parameters 

    application type 

    one of the following: "teamraiser_campaign", "donations_campaign", "advocacy_alert" 

    objectId 

    example: frId, id on advocacy alert table 

    subObjectId 

    example: teamId 

    consId 

    the constituent Id 

    goalAmount 

    number we are shooting for 

    progress image id 

    the id of a widget image to use 

    text color 

    color of the text 


    and here's what it looks like in action: <convio:session name="337" param="advocacy_alert:947:0:0:10000:1043:#000000"></convio:session>


    Note, the goal has to be hard coded in this scenario. 


    If you want to really focus on members in a group, I think the getGroupMembers api call would do the trick. (http://open.convio.com/api/#constituent_api.getGroupMembers_method.html)

  • Thank you so much for responding. I've had a go at this however it shows up as 0, when I know that isn't correct. 


    The code is as follows:  <convio:session name="450" param="Group_Id,48543:count,-9000">


    It looks like this in the WYSIWYG

    149ce100e693aef0540a3997250ab283-huge-sc

     
  • Sarah Kershaw:

    Thank you so much for responding. I've had a go at this however it shows up as 0, when I know that isn't correct.



    Has your group rebuilt yet? I believe that group count is cached.


    Try going to the group's Information tab. Do the member stats show 0? Try hitting Refresh Summary, and then checking your page again.

  • Hello,


    The group is set to rebuild daily and it has already rebuilt today so it should show something. Eeek!


    It also looks like you cannot combine manual contact uploads and query-built groups into the same group. (is this right?)

Categories