Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21628

Can't select country state from the registration form in Drupal 8

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      In Drupal 8, a user can register to the site via `/user/register`, a Form is rendered in order to also create a profile in CiviCRM.

      If you choose a country different than United States, you can't select a country subdivision (State) because the states of US are still as options in the State field, this happens also if you go try to edit the user profile from Drupal in `/user/%/edit/profile/%` (assuming % as a placholder for the corresponding numbers depending the user).

      This is because no JS from CiviCRM was loaded. You can see an error like `Uncaught ReferenceError: CRM is not defined` in console.

      A PR has been created on Github in order to avoid this behavior and also load the JS resources.

      PR: https://github.com/civicrm/civicrm-drupal/pull/509

        Attachments

          Activity

            People

            • Assignee:
              jackrabbithanna Mark Hanna
              Reporter:
              yaazkal Juan David Hurtado G
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: