Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Not sure if this a bug report or feature request:
I'm able to add an inline reference / creation form to other entities, but when I add an entity reference field to user accounts, on the user edit form the entity creation form appears with no submit buttons, rather than the "add new" or "add existing" buttons. Should I be able to add inline entity form fields to user accounts?
Comment | File | Size | Author |
---|---|---|---|
#12 | ief_user_reg-1917938-12.patch | 803 bytes | dabblela |
Comments
Comment #1
elly CreditAttribution: elly commentedChanging title for clarity
Comment #2
OFF CreditAttribution: OFF commentedSame issue
Comment #3
elly CreditAttribution: elly commentedBueller?
Comment #4
MrMaksimize CreditAttribution: MrMaksimize commentedI can confirm that this happens. Can't figure out why. Figured I'd give it a bump.
Comment #5
dsdeiz CreditAttribution: dsdeiz commentedHi!
Did a few investigation. I think the problem lies on these lines. During that time,
$form
ininline_entity_form_field_widget_form()
doesn't have the submit buttons on the form structure for user_profile_form yet.field_attach_form
is called beforeuser_profile_form
adds$form['actions']
.Comment #6
vasikeIf you have selected "Inline entity form - Single value" widget, then it's normal not to have the action buttons.
please check the README file, about the widgets IEF module provide:
http://drupalcode.org/project/inline_entity_form.git/blob/refs/heads/7.x...
is this your case?
Comment #7
OFF CreditAttribution: OFF commentedValues in inline entity form put to user entity are not saving
Comment #8
bojanz CreditAttribution: bojanz commentedProblems with the user add / edit / register form have been fixed by commit:
http://drupalcode.org/project/inline_entity_form.git/commitdiff/72f4b5a?...
Use the latest -dev, or wait for the new release to be tagged soon.
Comment #10
zmove CreditAttribution: zmove commentedI bump this thread because it still doesn't work. At least for user register page.
I'm trying to add an organic group node creation on the user register page. I added an inline entity form that reference my group node type. I can see the form on the user register system, but when I fill all the required fields. Validate my form, the user is correctly created but the group not.
No error messages at all, the group node is just not created.
Tested with single value inline entity form, if I try the multiple value inline entity form widget, the group creation part of the form is just empty.
Test with latest 1.4 version of inline entity form, so it should include the patch above.
Comment #11
zmove CreditAttribution: zmove commentedComment #12
dabblela CreditAttribution: dabblela commentedThis doesn't work for me either, because the form structure of the user_register_form submit button does not seem to match what the module expects. Patch attached that fixes the issue for me.
Comment #13
bojanz CreditAttribution: bojanz commented#12 was fixed in #2165113: Undefined index: #submit at inline_entity_form_form_alter().
I will tag a IEF 1.5 release in the next 24h, so test the latest -dev.
Comment #14
zmove CreditAttribution: zmove commentedTested the IEF 1.5 version but it still not create my node on user register form.
Comment #15
nicxvan CreditAttribution: nicxvan commentedCan confirm this is not working on IEF 1.5
Comment #16
dobrzyns CreditAttribution: dobrzyns commentedThis appears to duplicate #1876830 which has a patch submitted for review.
Comment #17
pixelsweatshop CreditAttribution: pixelsweatshop commentedLet's close this in favor of #1876830: Provide "user" entity type integration
Comment #18
josebc CreditAttribution: josebc commentedIm facing the same issue with 7.x-1.6, #1876830: Provide "user" entity type integration does not appear to be a duplicate, as far as i understood its about inlining user entity not adding inline entity fields to user
managed to go around the issue by adding this in a form alter