1

I am new to drupal and this community. I want to create a form like below.enter image description here

I write my custom form but my question is how can I show my form table format like columns and rows headers?

There can be already asked question for this too.Can anyone provide me some links or give me some hints.I am using drupal 7.

Thank You.

closed as too broad by sanzante, Shawn Conn, Pierre.Vriens, Adrian Cid Almaguer, Neograph734 Jun 26 '16 at 21:08

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to Drupal Answers! As it stands, you're asking 2 questions - I suggest splitting them into two and posting separately. They are completely unrelated, so your question might be closed. – Aram Boyajyan Jun 26 '16 at 18:50
  • Thanks for your response.I have edit my question. I will post my next question in next page – Dev Jun 26 '16 at 19:21
  • Hi Dev and welcome. Please be aware that it is your responsibility to search this site before asking a question, do not expect from us to know all existing questions and provide you with links ;). I'd also suggest you to read What topics can I ask about. This site is not about Implementing a functionality or a layout seen in a site, for which just a description of the feature, a screenshot, or a site URL is provided. Please update your question with what you have tried so far, and where you got stuck. – Neograph734 Jun 26 '16 at 21:07
1

This is more of a hint since I don't have "comment" privileges yet. You could create 4 field sets to accommodate the rows. Then create the collected funds and donor fields and when you add fields in each field set, use the respective field rather than create new ones.

So you are then left with html that you can very easily manipulate into having the appearance of being a table.

You would need to position the fieldset label to the left rather than on top and then hide the field labels for all but the first field set (giving it an absolute position and setting the first field to have enough left margin should accommodate this.

Then position the fields by either setting max widths and floating left to keep it responsive or setting the width of the field and the fieldset so that it's not responsive.

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