Im on d7. I want to have a block on the landing page of my site that has a "enter your title here" input field. When a user enters something in it and clicks continue, they are directed to the node submission form and the title field should be populated with what they had just entered. How would I put something like his together? Thanks?
Use the prepopulate module, there is an example on the docs for prepopulating the title field. All you need is to have a simple form that appends your $data to this path '/node/add/yourcontenttype?edit[title]='.'$data' |
|||||||||||||
|
Figured it out. Using the prepopulate module for anyone wanting to do the same thing, here is what my simple form looks like:
This gets the value of the input and after hitting the submit button, populates the title field of my content type. Im giving credit to @ipwa for directing me to the prepopulate module. Thanks. |
|||
|