Page Parameter in Obisidian Registration Block #5979
Labels
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
Description
We use Page Parameters for one of our more complex registration processes.
Long story short the user go through a workflow and ends up at a registration with two query string parameters passed in to help us update some data on the backend when the user has successfully paid in the registration.
The user will end up at our registraiton obisidian block with something like this /Registraiton?RegistrationInstanceId=XYZ&ScheduleId=88&BookingId=977
Previously we were able to access those two query string parameters in the non-obsidian registration block and use them in the "terms and text" value on the registration template. Now no page parameters are availabe as far as we can tell trying both ways to access those values.
Actual Behavior
We have added these two different attempts to access the data to the Terms and Text Registraiton Confirmation Field and receive no value.
{% assign queryParms = 'Global' | Page:'QueryString' %}
{% for item in queryParms %}
{% assign kvItem = item | PropertyToKeyValue %}
{{ kvItem.Key }}: {{ kvItem.Value }}
{% endfor %}
{% assign testingparameter = 'Global' | PageParameter:'testing' %}
parameter: {{ testingparameter }}
Expected Behavior
I should see printed or be able to interact with Page Parameter/Query String Values in the Terms and Text, Registration Confirmation or Registraiton Instructions fields.
Steps to Reproduce
go to: https://rock.rocksolidchurchdemo.com/web/event-registrations?RegistrationTemplateId=2&ExpandedIds=C174%2CC173
and edit the template.
Insert in the "Terms and Text" section under the "Registration Confirmation" field area at line 50:
{% assign queryParms = 'Global' | Page:'QueryString' %}
{% for item in queryParms %}
{% assign kvItem = item | PropertyToKeyValue %}
{{ kvItem.Key }}: {{ kvItem.Value }}
{% endfor %}
{% assign testingparameter = 'Global' | PageParameter:'testing' %}
parameter: {{ testingparameter }}
Save the template.
Create a new registraiton instance for that template and grab the instance id for it and use in the next step.
Go to: https://rock.rocksolidchurchdemo.com/registration?registrationinstanceid=2&testing=1234
Change the instance id to whatever is correct ( it maybe 2 as this gets wiped daily)
proceed through the steps of registering and hit the "Final" page and see that all you see is this:
Issue Confirmation
Rock Version
v16.2, v16.4
Client Culture Setting
en-us
The text was updated successfully, but these errors were encountered: