Problem/Motivation
adding a user, when one or more fields is added to the user account, is frustrating because the fields is not shown on the create form. so you have to add a user, then edit the user to fill in values.
But, that is not really true. It's fine if the person adding the field to the user account sees the check box to display the field on the user create form.
We can help the site builder who added the field to the user, and then tries to go back and find where the setting is to make it show on the of the form, but they cannot find the setting.
Proposed resolution
Putting the "Display on user registration form" setting also the Manage Display tab for user account settings could prevent the confusion I had.
Remaining tasks
- Done: write precise steps to reproduce problem
- Done: screenshot
- Done: check field display tab to see if can make create user form have the (aditional) translatable field. Result is the setting is on the edit field (or create field)
- re-write steps to reproduce that are not language specific
- think of a way to fix
- screenshot the fix
- ui review
User interface changes
Put the "Display on user registration form" setting also the Manage Display tab for user account settings.
API changes
No api changes anticipated.
Background
Was originally a follow up for #1831530: Entity translation UI in core (part 2) but this is language independent.
Comment | File | Size | Author |
---|---|---|---|
#5 | et-user-s05-displayOnUserReg-2012-11-06_1031.png | 93.58 KB | YesCT |
#4 | et-user-s01-accountmanagefields-2012-11-06_0908.png | 86.12 KB | YesCT |
#4 | et-user-s02-managedisplaytab_noshowoncreate-2012-11-06_0909.png | 68.56 KB | YesCT |
#4 | et-user-s03-createuser_missingfield.png | 87.39 KB | YesCT |
#4 | et-user-s04-fieldthereonedit.png | 92.43 KB | YesCT |
Comments
Comment #1
Gábor HojtsySo this feature (displaying user fields on registration form was added in #501408: Display user fields on registration form in Drupal 7. Question is what would be special about translatable fields that make them not participate in this?! Are you sure you checked the field for display on the registration form properly?
Comment #2
YesCT CreditAttribution: YesCT commentedI have not checked the display tab yet. I'll do that now.
Comment #3
YesCT CreditAttribution: YesCT commentedScreenshots coming.
Comment #4
YesCT CreditAttribution: YesCT commentedaccount manage fields
manage display tab
create user form missing the field
edit user has the field
Next
next I'm going to check profile as this might just be the way drupal works.
Comment #5
YesCT CreditAttribution: YesCT commentedAH. In the edit field there is a place to require it on create user: "Display on user registration form."
Next Steps
So, this is a closed works as designed.
Comment #6
Gábor HojtsyOr more accurately cannot reproduce. :)
Comment #7
YesCT CreditAttribution: YesCT commentedPutting the "Display on user registration form" setting also the Manage Display tab for user account settings could prevent the confusion I had.
Is there any place in Drupal where the same setting is exposed in different places?
Comment #7.0
YesCT CreditAttribution: YesCT commentedUpdated issue summary with remaining task idea to check field display tab
Comment #7.1
YesCT CreditAttribution: YesCT commentedUpdated issue summary to reflect the move to user component. not a multilingual problem.
Comment #8
tim.plunkettfixing tags
Comment #9
swentel CreditAttribution: swentel commentedThere is now the manage form display tab to fix this.
Comment #9.0
swentel CreditAttribution: swentel commentedUpdated issue summary, to take out the translation specific stuff.
Comment #10
dunot CreditAttribution: dunot commenteddrupal-8.6.dev doesn't have this – "Display on user registration form" – tick.
Instead you should use /admin/config/people/accounts/form-display/register
plus
$form['field_yourcustomfieldname']['#access'] = TRUE;
in hook_form_alter