You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I go to 'My FFQs and try to submit a incorrect Registration Code, the 'Register FFQ' button gets disabled and you are unable to click it again despite it saying 'Please try again' below. See attached image.
Expected behavior: 'Register FFQ' button remains clickable to allow more attempts.
The text was updated successfully, but these errors were encountered:
ayobi
changed the title
Register FFQ button greyed out after incorrect attempt
Register FFQ button disabled after incorrect attempt
Jan 23, 2024
… retry: Issue #309
The problem was code disabling the button right away rather than waiting and disabling it
after the form is validated to prevent multiple submissions
Add type='submit' to form submit button.
For the submitHandler in the Jquery Validation Plugin to get called, it requires
a button inside the form with the type='submit'.
Add code to return JSON format of python True or False value in implementation.py
In the implementation.py file, the function get_ajax_check_ffq_code validates the form
entry, and it needs to return a JSON value of true or false since it is returning the value
to a JavaScript function that doesn't understand python True or False. This function
was changed to return JSON of a True or False value.
Put the submitHandler of the validator outside the 'rules' object in order
for it to be called.
Test using a return value of True and False in the function get_ajax_check_ffq_code in the
implementation.py file to call the submit handler function. Now the submit handler
is called on a returned True value and the message of an invalid key is displayed
on a returned False value.
Add comment in submit handler function to create a function call in the
submit handler which is empty.
When I go to 'My FFQs and try to submit a incorrect Registration Code, the 'Register FFQ' button gets disabled and you are unable to click it again despite it saying 'Please try again' below. See attached image.
Expected behavior: 'Register FFQ' button remains clickable to allow more attempts.
The text was updated successfully, but these errors were encountered: