Document how to use (doesn't work)

Created on 16 September 2021, almost 3 years ago
Updated 22 December 2023, 6 months ago

Problem/Motivation

I'm not sure how to use this module. I understand the problem that it is supposed to solve, but in my experience the configuration is confusing and ultimately it doesn't work.

First issue:

Why are there two ways to configure which form mode is displayed to which user role?

You can find one here: /admin/structure/display-modes/form/config-form-modes
And you can also find a Form Mode Control section under permissions: /admin/people/permissions

Why? In my opinion the permissions sections makes much more sense. Usually this is where you configure what roles can do what.

What happens if these two configurations are out of sync? Which one takes precedence?

Second issue:

In my experience the module doesn't work. I'll outline steps to reproduce in the next section.

Steps to reproduce

  1. At /admin/config/people/accounts/form-display , scroll to the bottom. Under Custom display settings click Manage form modes.
  2. Under User add a new form mode. Call the form mode "Administrator".
  3. At /admin/config/people/accounts/form-display , scroll to the bottom. Under Custom display settings, enable the new form mode.
  4. At /admin/config/people/accounts/form-display/administrator configure the new form display in a way that is noticeably different than the Default form mode.
  5. At /admin/people/permissions give the "Use the form mode administrator linked to User ( User )" permission to only the Administrator role.
  6. Give the "Use the form mode default linked to User ( User )" permission to the Authenticated user role. Save.
  7. While logged in as a user with the Administrator role, edit your profile. You will see Default form mode instead of the Administrator form mode. This is the problem.
  8. Logout and login with a user with only the Authenticated user role. You will see the Default form mode (as you should).
  9. Logout and log back in with a user with the Administrator role. Play around with the duplicate configuration page for this module at /admin/structure/display-modes/form/config-form-modes. Edit your profile again. You will still see the Default form mode no matter how you configure the module.

What am I missing?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States maskedjellybean Portland, OR

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡΅πŸ‡ΉPortugal jrochate

    Well, after this time I found out that my previous response was about node entities and not user entity.

    The OP explained his problem about user entity, and I have come to the same conclusion:

    - the modify form mode works when dealing with node, but is doesn't work with user. The default for is always chosen, no matter what configuration and permissions are being set.

    Using ?display=form_mode_name works, but there should be the possibility of having the default configured on module's config form.

Production build 0.69.0 2024