Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registration Template Form allows adding duplicate Person Attribute questions #5372

Closed
1 task done
nlBayside opened this issue Apr 4, 2023 · 0 comments
Closed
1 task done
Labels

Comments

@nlBayside
Copy link
Contributor

nlBayside commented Apr 4, 2023

Please go through all the tasks below

  • Check this box only after you have successfully completed both the above tasks

Please provide a brief description of the problem. Please do not forget to attach the relevant screenshots from your side.

It is possible to create a Registration Template that asks the same question within a single form.

Example using Allergy Person Attribute

Screen Shot 2023-04-04 at 10 52 36 AM

This causes an exception to appear when that Form will be shown. This is related to issue #5186. That issue has been resolved; however, this issue refers to someone adding the same question more than once in a single form.
Screen Shot 2023-04-04 at 10 52 42 AM

One convenient thing is that the Registrant grid only shows the duplicate question once as a column.
Screen Shot 2023-04-04 at 10 59 45 AM
In this grid, I added the Registrants manually. If you try to register through the Registration Entry block, you will see the exception.

Screen Shot 2023-04-04 at 11 03 05 AM
The Obsidian Registration Entry block does not have this problem and allows the user to register. However, it shows the question twice (which is accurate but not ideal). The value that gets chosen for the Attribute is the last value.

Expected Behavior

The user would not be allowed to add the same question to a Registration Template Form more than once. They should either get a warning, or just remove the option from the dropdown list so it is inaccessible. People should be diligent with the questions they are asking; however, it's important to ensure that users have appropriate safeguards in place to prevent any unintended negative outcomes.

Actual Behavior

The original Registration Entry block throws an exception and users are unable to get past a form that has duplicate questions. The obsidian Registration Entry block does not have this problem, but does show the duplicate.

Steps to Reproduce

  • Go to Rock Demo Site.
  • Create a new Registration Template
  • Add duplicate Person Attribute questions to a single form.
  • Attempt to Register using the Original Registration
  • See exception

Rock Version

14.2

Client Culture Setting

en-US

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants