You want to turn a checklist from a document or an Excel sheet into a form. You need the option CREATE in Inspection Forms (MANAGEINSPFORM) with INSERT and SAVE of the object structure MXAPIINSPFORM.
1. Start the form. In the list, click New form, then From pasted text…. Type the name, and choose the organization and the site.
2. Paste the checklist. Paste it into Checklist. One line is one question. # Title or
Title: starts a section. [Pass|Fail] gives choices, [number], [text], [photo] and [date]
give a type, and a * at the end means required. Columns from Excel work too: Section, Question,
Type, Choices, Required. This checklist makes two sections with four questions:
# Yard
Coal stage clean and tidy [Pass|Fail] *
Water column leaks [Yes|No]
# Turntable
Turntable locks in each road [Pass|Fail] *
Photo of the turntable pit [photo]
The line under the box counts what the text creates. In the free edition, a text with more than 10 questions shows “This text has 12 questions. The free edition keeps a form at 10 questions or fewer.”, and Create form stays closed until the text is shorter.
The whole grammar of a checklist:
- A section is a line that starts with
#, or a line without brackets that ends with:. The lines below it are its questions, until the next section. Lines before the first section become questions outside any section. Empty lines are skipped. - A question is any other line. Its text is the line without the brackets and without the
closing
*. - One bracket is one field. Several brackets on one line give one question with several fields,
such as
Pad thickness (mm) [number] [photo]. - A line without brackets becomes a question with a text field.
- Choices stand in a bracket, separated by
|or;, such as[Pass|Fail]or[Pass; Fail]. They give a Single choice field.[multiple: Oil | Water | Air]or[multi: …]gives a Multiple choice field. - A type word in a bracket gives that field type:
text;number,numericornum;date;datetimeordate and time;time;photo,file,uploadorattachment;signatureorsign;scan,barcodeorqr;location,geoorgps;meter;formula;choice. The name of a type as the editor writes it, such as[Single numeric entry], and its code, such as[SE], work too. Capitals do not count. A word that is no type becomes a choice, so[Pass]is a Single choice field with the one choice Pass. - A
*at the end of the line makes every field of that line required.
Columns from Excel. When more than half of the lines that hold text contain a tab, the text is
read as columns: Section, Question, Type, Choices, Required, in that order. A first row with a cell that
reads Question is a header, and it may give the columns in another order. A row with a new section
name starts that section, and a row with an empty section cell stands outside any section. The type
cell takes the same type words. An empty or unknown type gives a Single choice field when the row
has choices, and a text field when it has none. The choices are separated by | or ;. The
Required cell means required for yes, y, x, 1, true or *.

A checklist with one line per question becomes a form.
3. Create the form. Click Create form. The form is made, and the pasted questions are saved
into it right after. A [photo] line gives a file upload field without a document folder. The form
check names it as an error, so open the question and type the folder in Document folder.
In an open form, Paste… in the bar and Paste a checklist… below the form take the same
text. Text of several lines pasted into a question’s text opens the same dialog. A form file pasted
into From pasted text… is known by its "format" line, and the dialog offers
Open it in “From a file…”.
