EmotionCognitionLab / pvs

1 stars 0 forks source link

Allow spaces in phone number at registration #333

Closed noah10 closed 1 year ago

noah10 commented 1 year ago

We allow users to enter () and - when entering their phone number, but not spaces, which doesn't make much sense.

cho890 commented 1 year ago

In the phone field, there is a suggested format of +12125551234

image

Should this be changed since you suggested earlier today that I use 10 digits without spaces and without +1?

noah10 commented 1 year ago

Sorry - I should have explained that that registration form is no longer used. (I can't get rid of it for reasons too complicated to type here, unfortunately.) Nobody should ever see it in the normal course of events, and if they do find it and use it they'll be told their consent form couldn't be found and they can't register. The proper registration form is now what you see after signing the consent form: regscreen

cho890 commented 1 year ago

How can I test this on dev? The link to the consent form that we've been using goes to the prod site.

cho890 commented 1 year ago

Added a phone number with - and got the following error message:

Something has gone wrong. Please contact the study administrator at uscheartbeam@gmail.com and give them your name, email address, and the following error message: An error occurred during registration: Phone number must be in the form +12135551212. (status code: 400)

noah10 commented 1 year ago

cho890 and I both checked again and found that it was working as expected. Closing.