Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3435

Handle required custom fields in signup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Tested
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.2
    • Fix Version/s: None
    • Component/s: UX (User eXperience)
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. In web as admin, enable Email signup in a site.
      2. Install the plugin attached to this issue.
      3. Go to "Site administration > Users > User profile fields".
      4. Create a new profile field of type "Supertext input". Make sure to select Yes in "Is this field required?" and "Display on signup page?".
      5. In the app, click to add a new site and enter the URL of the site.
      6. In the credentials page, click "Create new account". Check that you see a message saying that you need to signup in browser.
      7. Click the "Open in browser" button. Check that the signup page is opened in browser.
      8. In web as admin, edit the profile field and set "Is this field required?" to No.
      9. In the app, go back and then click the "Create new account" button again. Check that now you see the signup form.
      10. Fill the form and send it. Check that you don't see any error message.
      Show
      This issue only needs to be tested in 1 device. In web as admin, enable Email signup in a site. Install the plugin attached to this issue. Go to "Site administration > Users > User profile fields". Create a new profile field of type "Supertext input". Make sure to select Yes in "Is this field required?" and "Display on signup page?". In the app, click to add a new site and enter the URL of the site. In the credentials page, click "Create new account". Check that you see a message saying that you need to signup in browser. Click the "Open in browser" button. Check that the signup page is opened in browser. In web as admin, edit the profile field and set "Is this field required?" to No . In the app, go back and then click the "Create new account" button again. Check that now you see the signup form. Fill the form and send it. Check that you don't see any error message.
    • Affected Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.3

      Description

      As reported in the forum, when a required profile field is defined with a custom plugin it will break the signup.

      There is no way to work around it, but the current implementation returns an "Invalid parameter value detected" error that is not explanatory. We could handle this situation and show a message saying which fields are the problem.

      We could also disable the signup form altogether to prevent users from filling it in vain.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              noeldemartin Noel De Martin
              Peer reviewer:
              Noel De Martin
              Integrator:
              Juan Leyva
              Tester:
              Noel De Martin
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: