Form Builder: layout at each screen size
Summary A form in PaT can lay out its controls differently on four screen sizes: Mobile, Tablet, Desktop and Large Screen. This lesson is for the person who builds forms in the SD Form Builder, or…
Check yourself
Uw aanmelding bij PaT wordt gecontroleerd…
How To
Op deze pagina
- How PaT lays out a form on each screen size
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Choosing the screen size the canvas shows
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Dragging a control's width
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Seeing a control's width at each size
- Step 1
- Step 2
- Step 3
- Setting every size in the Responsive Layout Editor
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Step 7
- Step 8
- Step 9
- Previewing the form at each size
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Giving an image a size for each screen
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 6
- Step 7
- Changing and resetting a chart's height
- Step 1
- Step 2
- Step 3
- Step 4
- Saving your layout
- Step 1
- Step 2
- Step 3
- Purpose / Intent of the Module
- Header One
Summary A form in PaT can lay out its controls differently on four screen sizes: Mobile, Tablet, Desktop and Large Screen. This lesson is for the person who builds forms in the SD Form Builder, or dashboards in SD Dashboard, which uses the same builder. It shows how to pick the size the canvas shows, drag a control's width, set every size in the Responsive Layout Editor, preview each size, give an image a size for each screen, reset a chart's height and save the layout. The lesson Form builder: field types covers the controls themselves.
How PaT lays out a form on each screen size
Step 1
Each row of a form is split into twelve equal parts. A control 12 parts wide fills the row, 6 parts is half the row, 4 parts a third and 3 parts a quarter.
Step 2
Each control keeps its own width for each of four screen sizes: Mobile, Tablet, Desktop and Large Screen. A control can fill the row on a phone and take half of it on a computer.
Step 3
PaT picks which of the four widths to use from how wide the form is drawn, not from the device. The person filling in the form on a phone sees the Mobile widths, and on a wide computer screen the Large Screen widths.
Step 4
The canvas in the Form Builder is narrower than the page people fill in, so it often shows a smaller size than they see on a computer.
Step 5
Controls inside a Field Group follow how wide the group is drawn. In a narrow group they use the widths of a smaller size.
Step 6
To open the Form Builder, open the SD, click Advanced, then click SD Form Builder in the menu on the left. The lesson SD Forms shows the way in, and the lesson SD Dashboard: building a dashboard covers dashboards.
Choosing the screen size the canvas shows
Step 1
At the top of the canvas, in the middle, four device buttons sit in a row. From left to right they are for a phone, a tablet, a desktop and a large screen. Point at one to see its name: Mobile, Tablet, Desktop or Large screen. The button for the size picked is filled in blue.
Step 2
Click the phone, tablet or desktop button to narrow the canvas to that width. The controls on the canvas then show their widths for that size.
Step 3
Controls inside a Field Group change at the same time, to the widths for how wide the group is drawn.
Step 4
Click the large screen button to let the canvas use all the space beside the Controls panel. On a smaller computer screen, the canvas may not be wide enough to show the Large Screen widths.
Step 5
A device button is greyed out when your browser window is too narrow for that size: point at it to see why, such as Large screen: the window is too narrow. If you make the window narrower than the size picked, the canvas moves to the next size that fits.
Dragging a control's width
Step 1
A thin grey bar runs down the right edge of each control on the canvas. It turns dark grey when you point at it.
Step 2
Drag the bar to the left to make the control narrower, or to the right to make it wider. The width moves in twelfths of the row, and the control changes as you drag.
Step 3
Most controls stop at a quarter of the row (3 of 12 parts). A Single Value Display, one of the Reporting controls used on dashboards, can be dragged down to one twelfth of the row. Any control can be set to one twelfth in the Responsive Layout Editor.
Step 4
A drag sets the width for the size the canvas is showing, and also for each larger size that had the same width before the drag. A larger size set to a different width keeps it, and smaller sizes do not change.
Step 5
For example, a control is Full width on Mobile and Half width on Tablet, Desktop and Large Screen. With the canvas on Desktop, drag it to a third of the row: it becomes Third width on Desktop and Large Screen, and stays Half width on Tablet.
Step 6
So work from the smallest size up: set the Mobile widths first, then Tablet, then Desktop, then Large Screen.
Seeing a control's width at each size
Step 1
Point at a control on the canvas. At the left end of the row of small buttons at its top right, four small grey bars show its width on Mobile, Tablet, Desktop and Large Screen, from left to right.
Step 2
A wider bar means a wider control on that size: the bar for Full width is twice as wide as the bar for Half width.
Step 3
Point at the bars to see each size's width in words, such as Full width, Half width or Quarter width.
Setting every size in the Responsive Layout Editor
Step 1
Click any of the four small bars. The Responsive Layout Editor opens, with a card for each size: Mobile, Tablet, Desktop and Large Screen.
Step 2
Each card shows a box as wide as the control is on that size, with its width in words, such as Half width or Third width.
Step 3
On a card, click + (Increase width) to make the control one twelfth of the row wider on that size, or the minus button (Decrease width) to make it one twelfth narrower. A width goes from ~8% width, one twelfth of the row, up to Full width.
Step 4
To set all four sizes at once, click a preset under Quick Presets. The numbers after each preset are its widths for Mobile, Tablet, Desktop and Large, where 12 is full, 6 half, 4 a third and 3 a quarter.
Step 5
Fixed Width presets keep one width on every size: Full Width (12-12-12-12), Half Width (6-6-6-6), Third Width (4-4-4-4) and Quarter Width (3-3-3-3).
Step 6
Responsive Growing presets are wider on smaller screens: Two Column (12-12-6-6), Three Column (12-6-4-4), Four Column (12-6-4-3) and Six Column (12-6-4-2).
Step 7
Mobile-First presets are full width on a phone only: Mobile Full, Desktop Half (12-6-6-6), Mobile Full, Desktop Third (12-4-4-4) and Mobile Full, Desktop Quarter (12-3-3-3).
Step 8
Click Apply Changes, at the bottom right, to use the new widths. It stays grey until you change a width. Cancel closes the editor and changes nothing.
Step 9
The new widths show on the canvas at once. You still need to save the form to keep the new widths: see Saving your layout, below.
Previewing the form at each size
Step 1
In the Responsive Layout Editor, beside each size's name is a small button with an arrow pointing out of a box. Point at it to see what it opens, such as Open preview at Tablet size (768px).
Step 2
Click it. The form opens in a new browser window as wide as that size: 576 pixels for Mobile, 768 for Tablet, 992 for Desktop and 1200 for Large Screen.
Step 3
In SD Dashboard, the same button opens the dashboard at that size.
Step 4
The window shows the form as it was last saved, so save your changes before you preview them.
Step 5
Preview, at the top left of the SD Form Builder, opens the Preview (Emulated Size) window, with its own four device buttons.
Step 6
Click a device button in that window to narrow the preview to that size. The window stays open, and the canvas behind it keeps its own size.
Giving an image a size for each screen
Step 1
Point at an Image View on the canvas and click its edit button (the pencil). The Edit form field Image View window opens.
Step 2
Click the Image Size tab. Under Image Size Configuration, open Size Preset and choose Thumbnail (150x150), Medium (400x300), Large (800x600) or Full Width. Custom keeps the sizes the image already has.
Step 3
Each preset gives the image its own size on each screen. Thumbnail is 100 by 100 pixels on a phone and 150 by 150 on larger screens. Medium fills a phone's width, and is up to 300 pixels wide on a tablet and 400 on a computer.
Step 4
Large fills the width on a phone or a tablet, and is up to 600 pixels wide on Desktop and 800 on Large. Full Width always fills the width the control has.
Step 5
Below Size Preset, Max Width (px) and Max Height (px) cap the image's size, and Lock Aspect Ratio keeps the shape set in Aspect Ratio, such as 1:1. For example, a Medium image with 1:1 locked and both maximums at 100 draws 100 by 100 pixels.
Step 6
At the top of the window, above the tabs, Responsive Preview shows the image at each size, Mobile, Tablet, Desktop and Large, with its width and height under it. It shows only when the Image View has a link to an image.
Step 7
Click the green Save and Close Image View button at the bottom right of the window. It also saves the form: if (Unsaved changes) then shows in red beside the Canvas heading, click Save Form Now, at its right.
Changing and resetting a chart's height
Step 1
Charts and figures, such as a Line Chart, a Bar Chart or a Single Value Display, can change height too. Point at the bottom edge of one on the canvas: a thin grey bar runs along it.
Step 2
Drag the bar down to make the chart taller, or up to make it shorter.
Step 3
Once its height has been changed, point at its bottom edge again. A small square button with a circular arrow appears in the middle, with the tip Reset height to auto.
Step 4
Click it to put the height back to automatic, so the chart takes the height it needs.
Saving your layout
Step 1
A drag, a preset, Apply Changes or a height reset changes the form on the canvas only. Until you save, (Unsaved changes) shows in red beside the Canvas heading, above the canvas, with a green Save Form Now button at the right.
Step 2
Click Save Form Now, or the green Save button beside the device buttons at the top of the canvas, to save the form and keep the layout. When the save is done, (Unsaved changes) goes.
Step 3
PaT does not stop you leaving the Form Builder with unsaved changes, and they are lost. Save before you close the builder or open another page.
Purpose / Intent of the Module
A brief description of what this module is about
Header One
Rate this page
Checking your PaT sign-in…