Skip to content
HotLayout Docs

Preview and prototype

Here you check a screen the way a person will see it: on different devices, with and without data, clicking through the flow — first inside the editor, then by a link you can send to a colleague.

Play#

Press Play above the editor (or Shift+P). The screen opens full size, finished: no editor marks, the app bar stays in place and the content scrolls under it. Play draws the draft from the editor, with the active theme and the data dictionary of the project.

Play controls:

Setting What it is for
Back and Start over Back returns one step; Start over begins the run again from the first screen of the document.
Device The frame. It starts with the device chosen on the canvas.
Font scale The system font size. 1.3× is the accessibility setting that breaks layouts most often.
Screen theme The theme to draw with. It is the same choice as the theme button above the canvas.
Data Which data the screen is drawn with — the same scenario as above the canvas. See Data.
Events Taps, analytics events, writes and haptics in the order the app gets them.

Play starts from the screen that was open in the editor. Edit this screen leaves Play and opens in the editor the screen that Play is showing. Close or Esc returns to the editor; when focus is inside the phone, Esc closes a modal layer first, as it would on a phone.

Click through the flow#

Play is live: press a button and it goes to the next screen; choose an option, type into a field, switch a tab. What you choose and type changes the data of the run, on top of the scenario. Changing the scenario also forgets what you chose and typed. Nothing in Play changes the document.

Actions that belong to your app are not performed — Play opens no web pages. It shows a note saying what the app would be asked to do, with which parameters, and which analytics event would be sent first.

Checks on the canvas#

Above the canvas, next to the font scale, the Checks button lists what may look wrong on the device, font scale and scenario of the canvas: a text that does not fit its line, content below the first screen, a text longer than advised; it also lists what is hidden by a condition. The button shows the number of warnings; with none, the list says that everything fits.

These are warnings, not errors: the document can still be published. Click a warning to select the widget on the canvas.

The prototype is the published document in a browser tab of its own — something to send to a colleague or open on your phone.

  1. Publish the document.
  2. Press Open prototype above the editor or in the list of documents.

The prototype: the published screen in a phone frame with Back and Start over

  • The prototype shows what is published, not the draft. Until the first publication the link is not offered.
  • It is clickable, like Play, and has a switch between phone, tablet and desktop widths.
  • The link opens for anyone who has it; no account is needed. Treat it like the published screen itself.
  • If the project has its own data dictionary, the samples are shown only to members of the project who are signed in to the admin in the same browser. Everyone else sees fallback texts, and the page says so.
  • Above the editor, beside Open prototype, you can choose the data the prototype opens on: Sample data, No data or a saved scenario of the project (see Saved scenarios); Copy prototype link copies the address with the choice. In the list of documents the link always opens sample data. No data opens for anyone — it reveals nothing. A saved scenario is read only for members of the project who are signed in to the admin in the same browser; everyone else gets sample data and a line on the page saying why. The link names the scenario by its identifier, so renaming it does not break links already sent; if the scenario is deleted, the link opens sample data and says so.
  • To see a draft on your phone the way an app shows it — full screen, from an icon — see Like an app: from the home screen.
  • Screens change instantly in the prototype; your app adds its own transition animation.

Above the editor: the prototype data choice set to a saved scenario, with the note “Members only”

On my phone#

On my phone, next to Play above the editor, shows the draft on your own phone — without publishing and without an account on the phone.

  1. Press On my phone. A window opens with a QR code and its address.
  2. Scan the code with the phone camera, or send yourself the address with Copy.
  3. Keep editing. Every change that the editor saves reaches the phone in a few seconds; theme changes too.
  • In the phone browser the draft is drawn by the web renderer, and the page says so. For the native look, open the address in the HotLayout Preview app.
  • While the draft is shown, the button reads On my phone · live. If a change could not reach the phone, the button says Could not update the phone; the draft itself is saved, and the next saved change tries again.
  • Stop showing closes the address at once; the phone shows that showing has been stopped. Closing the window does not stop it.
  • The address works while the tab is open and stops working an hour after the last change. Anyone who has the address sees the draft, so send it only to yourself.
  • A viewer does not have the button. The button is also unavailable when the organisation cannot publish (the trial has ended or the licence has expired) — it gives the same reason as the Publish button, because the address is a public link outside the editor.

Like an app: from the home screen#

In a browser tab you see the draft with the address bar and toolbar around it. To see what a client will see in the app — the screen on the whole display, nothing around it — put the address on the home screen of the phone and open it from the icon.

The same draft: in a browser tab, with the address bar and toolbar, and opened from the home screen icon, full screen

On an iPhone or iPad (Safari):

  1. Scan the code or open the address in Safari.
  2. Tap Share, then Add to Home Screen, then Add.
  3. Open the new icon. The draft opens on the whole screen, without the browser bar.

On an Android phone (Chrome):

  1. Scan the code or open the address in Chrome.
  2. Open the browser menu and tap Add to Home screen (on some phones, Install app).
  3. Open the new icon. The draft opens as an app, without the address bar.
  • The icon keeps the address of the draft. Every change that the editor saves reaches the screen opened from the icon in a few seconds, as in the browser.
  • The address stops working an hour after the last change. Then the icon shows that the link has expired. For another draft, or after an hour, press On my phone again, scan the new code and add it to the home screen once more; an old icon can be removed.
  • On Android, an icon opened without a fresh scan shows the draft that this phone opened last.
  • This is set up only for the address from On my phone. The prototype link and the review page are ordinary web pages; use them in the browser.

For people who only look#

A member with the Viewer role opens a document as a view: the screen map and a phone to click through, with nothing to edit. It shows the team's working draft; Refresh loads the latest one.

A document opened by a viewer: the screen map and a clickable phone, no editing tools

Next#