AEM Forms · updated

Which columns does the Edge Delivery form spreadsheet use?

Each row of the form sheet is one field, and the column headers name its properties. The ones nearly every form uses are Name, Type, Label, Placeholder, Value, Options and Mandatory. Adobe documents further columns for limits, help text, grouping, repeating groups and simple formulas.

In plain words

Think of the sheet as a list: one line per question. The first three columns say what the field is called, what kind of field it is and what label the visitor sees. The rest are optional.

Columns Adobe documents

ColumnApplies toWhat it does
TypeAllThe kind of field. Adobe says the block supports all valid HTML5 input types, plus textarea, select and fieldset.
NameAllIdentifies the field in the submitted data.
LabelAllThe text shown next to the field.
ValueText, number, date, checkbox, radio, hidden, submit and othersThe initial value; for a checkbox or radio, the value submitted when it is selected.
PlaceholderText, tel, email, password, date, number, rangeA hint shown until the visitor types.
DescriptionAllHelp text below the field.
MandatoryText, tel, email, password, date, number, checkbox, radio, file, select, textareaWhether the field must be filled in.
Min / MaxDate, number, rangeLowest and highest allowed value.
OptionsDropdownComma-separated list of choices.
Accept / MultipleFileAllowed file types; whether several files can be chosen.
CheckedCheckbox, radioSelected by default.
VisibleAllWhether the field is shown when the form loads.
FieldsetAllThe name of the group (a row of type fieldset) the field belongs to.
RepeatableFieldsetLets a group repeat between Min and Max times; Adobe says not to set Min to 0.
Visible Expression / Value ExpressionAllA spreadsheet formula starting with '=' that controls visibility or value, using only other fields' values.

What the block's source code adds

The block's transform.js, in Adobe's aem-boilerplate-forms repository, shows exactly how cells are read. Mandatory counts as true when the cell holds true or x. Options (and a matching OptionNames column for display labels) are split on commas. A row of type submit becomes the submit button; if its Value starts with https it is used as the redirect address after submission, otherwise as the thank-you message. The same file maps sheet types to adaptive form field types, for example text to text-input, select to drop-down and textarea to multiline-input, and writes the result as an adaptive form definition with adaptiveform set to 0.10.0.

Because options are split on commas, an option that contains a comma cannot be written in the Options cell. The generator on this site warns you and removes the comma.

A small form sheet (shown as comma-separated values)

Name,Type,Label,Placeholder,Value,Options,Mandatory
fullName,text,Full name,Your name,,,true
email,email,Email address,,,,true
topic,select,Topic,,,"Sales,Support,Other",
message,textarea,Message,,,,
submit,submit,Send,,,,

How to check your sheet

  1. Confirm the sheet is named shared-aem or helix-default.
  2. Make sure the first row holds the column headers, spelt as in the table above.
  3. Give every row a Name and a Type; add a row of type submit for the button.
  4. Keep Name values unique: they become the column headers of the incoming sheet.
  5. Preview the sheet with the AEM Sidekick and read the JSON: every row should appear under data.

Related tools and pages on this site

Questions

How do I mark a field as required?

Put true (or x) in the Mandatory column. Adobe's block source treats both as required.

How do I group fields?

Add a row whose Type is fieldset, then put that row's Name in the Fieldset column of each field that belongs to the group.

Can I generate the sheet instead of typing it?

Yes. The adaptive form generator on this site turns a list of fields into the sheet rows, as CSV to paste or import, and as the JSON the block reads.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one AEM Forms question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →