Hi All,

How to add one node form within another node form and when I submit that node both nodes should be created i.e. In page node form, i can add story node form and when i submit page node, page and story both nodes should be created

Thanks

Comments

poo master’s picture

Why would you want to do this?
I ask because the only good reasons I could think for doing this I would use views instaed. I would not make two content types with the same content.

Otherwise I don't understand the question.

jalpa_bhalara’s picture

My actual requirement is to create one event node and multiple poll nodes

On event node form, there is one button "Add new poll", that button is used to
add multiple poll node forms (like, "Add another choice" button on add/node/poll
can create multiple textboxes for choices, i have same criteria but using "Add
new poll", i can add new poll node form)

and when i submit event node form, event + all polls must be created/submitted

I want structure like this,

=====================
Event node form

(Add new poll)
---------------------
Poll node form 1
---------------------
Poll node form 2
---------------------
Poll node form 3
---------------------
.......
---------------------
Poll node form n
---------------------

(save) (preview) <- buttons of Event node form

=====================

poo master’s picture

There was for Drupal 5 if I understand what you want to do. It was pollfield I think.

The only way I know how is to create the poll nodes and then create the event node. Then attach them with node reference.

I am not sure what the polls are going to be like but maybe you could use like 5 star?
Dunno.

jalpa_bhalara’s picture

Thanks for help,

I want this type of functionality in drupal 6 only, As per my requirement poll field is not useful and yes i can do by first create poll and use node ref in event form and then create event node but i want to stay with this structure only

and 5 star module provides voting on nodes so it's also not useful

now have you any idea ?

poo master’s picture