-2

I created a content type, I need to place several fields on front page (text field, dropdown list and button). How can this be done? Do I need to use the Form API?

Please let me know what's the best way to go about this.

P.S. I m fairly new to Drupal. Coming from Joomla.

3
  • Do you mean you want to put a form on the front page with a text field, dropdown and button? Or do you want to display values from these fields? For creating a form see Form API Reference.
    – Felix Eve
    Apr 29 '14 at 11:34
  • Why you want that form in front page any Survey or Create node ?
    – Rupesh
    Apr 29 '14 at 12:30
  • Hi, Thank to all. Yes, I want to put a form on the front page with a text field, dropdown and button. I mean create node..
    – xck
    Apr 30 '14 at 9:33
0

I think the best option for You is the module "Webform",

but you can solve your problem also by Form api, though in that case you must create custom module and write enough code...

1
  • Hi, thank you for reply, but Webform module for survey tasks?
    – xck
    Apr 30 '14 at 10:02
0

To display the node form on the front page you can use Form block module. This module fulfill your requirement.

Form Block:

Enables the presentation of user registration, site wide contact, or node creation forms in blocks. This is particularly useful for including forms on panels.

0

You can use "webform"

Using webform you can create all kind of fields, Also you can display that form fields as a block using webforms settings, And you can display that block anywhere on your site.

Here is description, How you can create a block for your webform "webform in a block"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.