Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:22:02+00:00 2026-06-14T21:22:02+00:00

I want to group the form fields like field set or simply enclosed by

  • 0

I want to group the form fields like field set or simply enclosed by div. My form needs to be look like below

<form>
<div class="step-1">
    Field 1
    Field 2
</div>
<div class="step-2">
    Field 3
    Field 4
</div>
</form>

Graphical example :

Edit : Form class added for reference!

class ProfileForm extends BaseProfileForm
{
  public function configure()
  {
    ..... // other widget configuration
    $this->embedForm('media', new MediaForm());
  }
}

How can I do this in symfony form?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:22:03+00:00Added an answer on June 14, 2026 at 9:22 pm

    For example:

    In action:

    $this->form = new MyCoolForm()
    

    In templates:

    <form name="form name" id="MyCoolForm" action="<?php echo url_for('action_url') ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    
     <?php echo $form['name']->render() ?>
     <?php echo $form['name']->renderError(); ?>
    
     <fieldset>
      <legend>Ppassword:</legend>
     <?php echo $form['password']->render() ?>
     <?php echo $form['password']->renderError(); ?>
    
     <?php echo $form['password_again']->render() ?>
     <?php echo $form['password_again']->renderError(); ?>
    <fieldset>
    
     <?php echo $form->renderHiddenFields(); ?>
    </form>
    

    etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to group several standard form fields into a single custom form field
I have <form action=# method=post class=well> <fieldset> <div class=control-group> <label class=control-label for=FirstName>Name</label> <div class=controls
Given a table: day_date (form of yyyy-mm-dd) column2 column3 I want to group the
I want to insert a group box in the form and put in 3
I want to add extra infos for some fields of a django form, and
I have a search form field that I want to compare with multiple columns
I would like to create a simple form with form field/component duplication feature. I
I'm creating a validation script for a multi-step form, each group is inside a
I have this scenario. I want group on Country and Category. A store can
I want to group an sql statement by a column alias. In essense, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.