Fix event registration checkboxes, add API auth header, and add No Limit checkbox UI#2094
Merged
maernest04 merged 1 commit intoApr 24, 2026
Merged
Conversation
steeevin88
requested changes
Apr 24, 2026
steeevin88
left a comment
Collaborator
There was a problem hiding this comment.
let's rebase this lol, will approve after
f530da2 to
d81ee57
Compare
steeevin88
approved these changes
Apr 24, 2026
steeevin88
left a comment
Collaborator
There was a problem hiding this comment.
cool am trusting that you tested this
KhoaNguyen706
pushed a commit
that referenced
this pull request
Apr 27, 2026
…mit checkbox UI (#2094)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For issue #2093
Problem
answer_optionsfor checkbox-type questions before sending them to the API.createSCEventAPI call wasn't attaching the required JWTAuthorizationheader.-1for unlimited attendees), which was confusing and easily broken if users typed invalid inputs.Solution
answer_optionsforcheckboxquestion types, exactly like we do for multiple choice and dropdowns.createSCEventfunction to accept and attach the JWT token as a Bearer header, and passed the token fromlocalStorageinto the call.-1. If unchecked, frontend validation ensures the user enters a valid positive integer.Files Changed
src/Pages/Events/CreateEventPage.jstoApiRegistrationFormandupdateQuestionTypeto includecheckboxtypes.jwtTokenfromlocalStorageto pass to the API function.src/Pages/Events/CreateEventFormQuestionBlock.jscheckboxto the condition that renders the editable answer options list so admins can define checkbox options.src/APIFunctions/SCEvents.jscreateSCEventto accept atokenargument and insert it into theAuthorizationheader.