Closed (fixed)
Project:
Subform Element
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2008 at 08:34 UTC
Updated:
2 Jul 2008 at 04:23 UTC
Greetings,
I'm using nodeprofile.module and I would like to theme user profile edit form where nodeprofile form is embedded.
We need to display nodeprofile form elements without fieldsets. After we do this the form stops working, values are not saved.
The reason is subform_elemts did something with their names and they were spoiled.
After I manually assigned proper names like this:
$form['profile']['form']['#form']['field_profile_phone']['0']['value']['#name'] = 'profile_node_form[field_profile_phone][0][value]';
everything starts to work correctly.
I understand that you probably change names to avoid name ambiguity (to guarantee unique names) but is it possible to fix this issue?
Comments
Comment #1
fagohm, you should just theme the original form. that should work like usual.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
ardas commentedThere is no sense in theming original form because the layout is different.
Example: I have node profile form embedded into user registration form. All elements on node profile form look different from the same elements but on the registration form. There are more elements on registration form and all of them should be layouted in different manner.
I need to have a separate theme function for registration form.