Not working on user form display

Created on 22 June 2023, over 1 year ago
Updated 24 June 2023, over 1 year ago

Problem/Motivation

Form steps are not working when used on the default user form display. Likely due to the dual registration/edit purpose.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States robphillips

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @robphillips
  • 🇮🇳India keshav patel

    Hi robphillips, Please review this module it may help you.
    composer require 'drupal/account_field_split:^2.0'
    It splits and lists all the fields of 'Create User' Page.

  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
    • 5843d0fb committed on 1.x
      Issue #3368828: Not working on user form display.
      
  • Status changed to Fixed over 1 year ago
  • 🇺🇸United States robphillips

    Issue turned out to be order of operations and also editable fields not using form display widgets. Moving the step logic from submit to validate fixes the order of operations. Fixing up #limit_validation_errors with fully qualified tree keys resolved validation issues. And made it possible to easily remove form state values when a non-widget element isn't on the current step being submitted. End result is improved support across all content entity types and form display modes.

    @Keshav Patel - Account forms aren't the only entity forms that can add custom non-widget elements. So the solution needed to take that into account. With that said, I don't see any reason why this module can't work alongside account field split.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024