Controlling the Layout of Forms

Click here to view the legacy documentation for this feature.

m-Power templates do a lot to make beautiful web applications right “out of the box”. To compliment this, many developers take these aesthetics further by restructuring the page to maximize screen sizes real estate as well as page flow efficiency. However, restructuring the page layout typically requires going into the HTML source code. Often times this is a daunting task for the average m-Power developer. However, m-Painter allows you to control the layout exclusively within the graphical interface.

The Form Designer is only supported in Bootstrap themed dictionaries.

Enabling the Form Layout

Click the “Layout” checkbox to begin. Doing so will then automatically enable the “Form” layout.

m-Painter understands that you almost certainly want to enter Drag and Drop mode so while in Form Layout, it will automatically enable this for you. However, you are welcome to disable it if you prefer.

Green Hover Menu

From here, you can utilize the green hover menu to modify the layout of your page.

  • Up arrow — Inserts a row above your selected row
  • Down arrow — Inserts a row below your selected row
  • Left arrow — Insert a column to the left of your selected element
  • Right arrow — Insert a column to the right of your selected element
  • Plus icon — Increases the size of the selected element. Keep in mind your page is organized by 12 columns. This means that, by adjusting the size of the columns, you are instructing m-Power to take up some of those 12 available columns.
  • Minus icon — Decreases the size of the selected element.
  • Box icon — Wraps the selected element in a container.
  • Trash icon — Removes the selected icon.

Real World Example

As you already know, when you build a maintainer form, m-Power creates each input on its own row. For this example, lets say you want to make better use of the space by placing 2 inputs in one row. We will, also wrap all content into a nice card to improve the aesthetics.

Open m-Painter and navigate to the Web Form Layout. Click “Layout.” Both the “Form” mode and “Drag & Drop” should now be activated.

Hover over your first 4 input boxes and click the right arrow. Your page should now look like this:

Next, click and drag some inputs from down below into the empty cells on the right.

Scroll down and hover over the empty rows. Click on the trash can for each of them to remove these now unneeded rows.

Finally, hover over the box that is just outside your main input section.

Once selected, click the box icon. Select Card, then select the card of your choosing. I’ll choose the success header. Click the “Edit UI” button to allow editing individual elements. Change the text of Success Header to read Customer Info. Save. Your page should now resemble this.

Updated on December 6, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support