Is it possible to access the team ID for the current TR Registration during the registration?

Options
Does anyone know of a way to access the ID of the team for which the current teamraiser registration is associated, mid registration (specifically on the 'participant info' page)?


The use case is to conditionally display a registration question if the team is in a specific Team Division. I can query the division using S43:0:div-name:1234 (an undocumented parameter) where 1234 is the ID of the team in the current event, but figuring out the team ID is proving tricky.


The S48 doesn't work because the registration hasn't been completed yet.


The closest I've come is to use javascript in the wrapper to add a session variable to all links in the teamraiser which have the url parameter "&fr_tjoin=1234" by grabbing that ID and appending "&s_teamID=1234" to the link, which can be accessed through S80:teamID. But this won't capture any folks who click links sent via email and the use of S80 feels risky to me in case it times out and gets lost mid-registration.


Other ideas I had were to check for a hidden field in the registration form (there is none) or to query the URL parameter (fr_tjoin) on the team join page using an S334, but it never actually loads with that parameter on the client side, though it is included in the template-generated "join team" links.
Tagged:

Comments

  • I would have gone with the session variable as well. A cookie is also an option.


    You could also bind a script to the team field's on change or on blur event to handle those not appearing in the url param.

Categories