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?

CommentFileSizeAuthor
#12 ief_user_reg-1917938-12.patch803 bytesdabblela
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

elly’s picture

Title: Adding inline entity reference fields into user form doesn't work properly » Can't add inline entity reference fields to user entity

Changing title for clarity

OFF’s picture

Same issue

elly’s picture

Bueller?

MrMaksimize’s picture

I can confirm that this happens. Can't figure out why. Figured I'd give it a bump.

dsdeiz’s picture

Hi!

Did a few investigation. I think the problem lies on these lines. During that time, $form in inline_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 before user_profile_form adds $form['actions'].

vasike’s picture

Status: Active » Needs review

If 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?

OFF’s picture

Values in inline entity form put to user entity are not saving

bojanz’s picture

Status: Needs review » Fixed

Problems 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.

Status: Fixed » Closed (fixed)

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

zmove’s picture

I 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.

zmove’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
dabblela’s picture

Status: Active » Needs review
FileSize
803 bytes

This 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.

bojanz’s picture

Status: Needs review » Closed (fixed)

#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.

zmove’s picture

Status: Closed (fixed) » Active

Tested the IEF 1.5 version but it still not create my node on user register form.

nicxvan’s picture

Can confirm this is not working on IEF 1.5

dobrzyns’s picture

This appears to duplicate #1876830 which has a patch submitted for review.

pixelsweatshop’s picture

Status: Active » Closed (duplicate)
josebc’s picture

Status: Closed (duplicate) » Needs work

Im 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

case 'user_profile_form':
  $submit = &$form['#submit'];
  $submit = array_merge(array('inline_entity_form_trigger_submit'), $form['#submit']);
  break;