Guide

Publishing and sharing

Each form gets its own contract on Midnight. Then share a link, a QR code, or put it on your site.

Publish

Publish sits at the top right of every tab (and, before the first publish, on Overview's Publish card). It first lists anything to fix under Fix these first, and won't publish until those are done. Overview's Before you publish shows the same list, and under Questions a dot marks each block that has a problem. The first time, the dialog also asks which network the form lives on:

NetworkWhat it is
PreviewMidnight's public network for new apps. The default.
PreprodMidnight's last stop before mainnet.

A form stays on the network it's first published to. A network that's still connecting on the server shows as such and can't be picked yet.

Then Mitome deploys your form's own contract on that network and the dialog ticks off each step as it happens:

  1. 01

    Preparing your form's contract

    Your checks, times, workspace key and your own encryption key go into it

  2. 02

    Proving it on Mitome's server

  3. 03

    Paying the network fee (on us)

  4. 04

    Sending it to Midnight

  5. 05

    Waiting for the next block

  6. 06

    Live on Midnight

    contract address

The six steps of a first publish, streamed live to the dialog
/forms/frm_b4v1…
A published form's Overview: the On Midnight card, ringed, with the network, the contract address and the number of entries recorded
Once it's live, Overview shows the contract that checks every entry.

When it's live, the dialog shows the contract address with a link to it on Midnight Explorer, and the form's status reads, for example, Live · Preview. Overview's On Midnight card keeps the address, the entries recorded and View on the explorer.

You can close the page while it publishes; it carries on. The contract holds the form's rules, its open and close times, your workspace's key and the encryption keys answers are sealed to, all public. It starts with yours; your teammates' are added with Update access under Settings → Team. Answers never go into it: only a receipt for each.

/forms/frm_xk6b…
The ringed Publish your changes dialog over a live form's Overview: People see them right away. The form keeps its contract on Midnight unless you changed what the contract enforces: its checks, its opening times or the number of winners in a draw. Then a Publish button
Publishing changes to a live form.

After the first publish, the button reads Publish changes (Publish in a narrower window). It puts new wording, questions, design or logic live at once, as a new version. Changing checks or open and close times, or adding, removing or resizing a draw, needs a new contract, which is allowed only until the first answer arrives. The new contract has a new address, and starts again with only your encryption key, so run Update access again for your team. After the first answer, Duplicate the form from the ⋯ menu in the forms list instead.

Share

/forms/frm_e3w3…?tab=share
The Share tab: the form's link with copy and open buttons and Change the link, a QR code with Download PNG, Tickets and check-in with Turn on tickets, and the embed modes Inline, Popup, Slider and Full page with a snippet
WhereWhat
Link/f/<link>: 8 random characters, or your own with Change the link (the old one keeps working). Anyone with it can answer, on any device; nobody needs an account or a wallet.
QR codeFor posters, slides and events. Download PNG saves a 1024 px image.
EmbedInline, Popup (the default), Slider or Full page, each with a copyable snippet. Answers are still sealed in the person's browser. Embed SDK.
On MidnightThe network (with Open in explorer), the form's contract address and its rules hash, so anyone can check the form's rules and count its answers on chain.

Pause and close

On the Settings tab, Pause answers stops new answers until you Resume answers; Close for good stops them forever. Each is an action you sign in your browser; Mitome relays it to the contract, which then refuses answers on chain. People see "This form is paused", or "This form is closed" with your message.

Archive

The ⋯ menu in the forms list archives a form. An archived form keeps its answers, but its link stops working until you Restore it from the Archived view.

On this page