# Publishing and versions (/docs/survey-apps/publish-and-versions)



A survey's form is versioned the same way every Factophant app is (see
[Draft and publish](../overview/apps.mdx#draft-and-publish)): you edit a private
**draft**, and **Publish** makes it the form respondents see. Each published version
is kept, unchanged, in the history.

## What is versioned, and what is not [#what-is-versioned-and-what-is-not]

| Part of the survey                                                                                 | Versioned? | When a change reaches respondents      |
| -------------------------------------------------------------------------------------------------- | ---------- | -------------------------------------- |
| Pages and questions, with every setting on them                                                    | Yes        | When you publish                       |
| The form's title, description and **Show progress**                                                | Yes        | When you publish                       |
| The form's messages (**After submitting**, **When closed**)                                        | Yes        | When you publish                       |
| The collection rules (**Accepting responses**, **Close on**, **Response limit**, another response) | No         | The moment you save                    |
| The link                                                                                           | No         | The moment you regenerate it           |
| The responses                                                                                      | No         | They are data, never part of a version |

The split is deliberate: closing a survey has to work instantly, while a new question
should only reach respondents when you decide. The collection rules are on the
[Settings page](./share-and-collect.mdx#the-collection-rules).

## Publishing [#publishing]

Publishing needs the **App builder** or **Admin** role. Choose **Publish** in the
editor's top bar. If the form still has problems the button shows how many ("2 to
fix") and lists them; fix them first - see
[Before you can publish](./build-the-form.mdx#before-you-can-publish).

The confirmation lets you give the version an optional name. Once the survey has
answers, it also tells you **what this means for the answers you already have**:
whether any question would be **redefined** (below), and which. That is a warning, not
a block - you can still publish.

After publishing, a message names the new version, and the badge in the top bar
(for example **v3 live**) shows which version respondents are answering now. With
nothing new in the draft, **Publish** says there are no changes to publish.

Until a survey is published for the first time its link answers "not open yet", and it
has no responses.

## Editing a survey people are answering [#editing-a-survey-people-are-answering]

**You can keep editing after you publish.** An edit opens a draft, respondents go on
answering the published form while you work, and your changes reach them when you
publish again. Nothing you have collected is lost or changed by any of it.

Someone who had the form open when you published a new version is not recorded
against a form they were not shown: when they press **Submit** they are told the form
has changed and asked to reload the page and answer it again.

### What is fixed once a question has answers [#what-is-fixed-once-a-question-has-answers]

A question somebody has answered carries a **Has responses** badge, and part of it is
fixed, because changing it would leave stored answers pointing at something that no
longer exists.

| You can still                                                 | You can no longer                   |
| ------------------------------------------------------------- | ----------------------------------- |
| Reword the question and its help text                         | Change its answer type              |
| Move it, including to another page                            | Change its column name              |
| Make it required or optional                                  | Remove one of its answer options    |
| Add an answer option, and rename one                          | Switch its Other choice on or off   |
| Change a condition                                            | Remove a column of a table question |
| Add a table column, rename one, change whether it is required | Change the type of a table column   |
| Change a file question's accepted files                       |                                     |

Deleting an answered question **archives** it: it leaves the form when you next
publish, and its answers stay - in the responses, the CSV export and the data.

### Changes that make a new measurement [#changes-that-make-a-new-measurement]

Some changes are allowed but mean the answers before and after are no longer one
measurement. Factophant calls such a question **redefined**:

* changing a scale's ends, for example from 1-5 to 1-10;
* changing a number's range or decimal places;
* changing the condition that decides who is asked;
* making a required question optional, or an optional one required;
* changing a table question's columns in any way, adding one included.

Rewording a question, renaming an option, adding an option or moving a question is
**not** such a change: those answers still belong together.

You are told before you publish, in the confirmation. Afterwards, the Summary counts
only the question's current measurement rather than averaging the two together; the
earlier answers are still in the Individual view, the record panel and the export. In
the history, each version that received answers carries a short summary of how its
questions changed from the version before.

## History, discard and restore [#history-discard-and-restore]

The history (the clock button in the editor's top bar) lists every version. Opening an
older version shows its form read-only, with a **Viewing v2** badge in the top bar, so a
look back can never become an accidental edit.

* **Discard** throws the draft away and brings back the last published form. Responses
  are never touched.
* **Restore** brings an older version's form back as a new version, which respondents
  then see. It brings back that version's questions and messages; it never brings back
  old answers or removes new ones, and it leaves the collection rules and the link as
  they are.

Publishing, discarding and restoring need the **App builder** or **Admin** role.

## Duplicating a survey [#duplicating-a-survey]

To run the same questions again - next year's edition, or a variant for another group -
open the survey with **Open editor** and choose &#x2A;*Duplicate survey…** from the **More
actions** menu (⋮) in the top bar. You name the new survey and, if you may create apps
in more than one space, choose the space it goes into.

The copy takes the questions in their order, the form's description, its messages and
its **Show progress** setting, and starts as a draft. Archived questions are left
behind. Everything else is new: it gets its own link, its own collection rules and its
own responses, and it holds no answers. The original keeps its link and its answers.

The menu appears only for people who may create apps in at least one space, because a
duplicate is a new app. Someone who reads only the published survey duplicates the
published form, and a survey that has never been published cannot be duplicated by
them.
