Publishing and versions
A form cannot be filled in until it is published. Publishing makes a version from the draft as it stands, and that version cannot be changed. This page covers publishing, versions and the end of a form’s life. To publish, you need permission to publish forms.
Publishing a form
Section titled “Publishing a form”- In the designer, click Get ready to publish. The Before publishing window shows the number of pages and elements in the form, and any errors.
- If there are errors, it reads It cannot be published: N errors to fix. Open the errors from the Issues list and fix them. Warnings do not stop publishing.
- If you like, write a Release note, for example “Gerekçe alanı eklendi”.
- Click Publish. Your unsaved changes are saved to the draft first, then the draft is published as a new version.
The result window says “v2 is published” and lists the fields that changed from the previous version. If an approval workflow reads a field of this form and the field’s place has changed, the window says that too, as a warning.
When publishing, Defthand checks the same rules again on the server. If nothing has changed in the draft, no new version is made.
When a live form changes
Section titled “When a live form changes”After publishing you can keep working on the draft. The band at the top of the designer says “There are unpublished changes”; the same mark shows in the Form management list. Until you publish again, staff keep filling in the live version.
When you publish a new version, a person who is filling in the form at that moment notices it when they submit: Defthand moves their answers to the new version, shows the message “The form was updated and the new version opened” and lists the fields that have no counterpart in the new version. The person checks their answers and submits again.
Version history
Section titled “Version history”The Versions button in the designer (or the form’s Versions action in the list) opens the Version history panel. When you choose a version you see:
- a read-only preview of the version,
- its difference from the previous version: Added fields, Removed fields, Fields with a new key, Fields with a new label.
Published versions cannot be changed. Removed fields and fields with a changed key do not break old submissions; each submission is read with its own version.
Test scenarios
Section titled “Test scenarios”In forms with many rules, write scenarios in the Tests tab to make sure a change does not break another rule. A scenario gives answers and says what should happen:
- Click New scenario and give it a name, for example “5.000 TL üstü masrafta gerekçe zorunlu”.
- Line up the steps with Add a step: Give an answer (write a value into a field), Remove an answer, It should be (an element should be visible, required, enabled or read-only) and Submit (the submission should be accepted or refused).
- Save the scenario, then Run or Run all.
If you prefer to write the scenario line by line, switch to the text view with Edit as text; you can add a text step to write notes between steps.
Example scenario, for a vehicle check form:
- Give an answer:
ariza_var= Yes. - It should be:
ariza_aciklamarequired. - Submit: should be refused (the description is empty).
- Give an answer:
ariza_aciklama= “Sol ön far yanmıyor”. - Submit: should be accepted.
Scenarios run against the real validation on the Defthand server; nothing is saved and nothing goes to anyone. A scenario that does not hold does not stop publishing; it shows as a warning in the publish window.
Archiving
Section titled “Archiving”Close a form that will no longer be used with Archive in the Form management list. An archived form takes no new submissions, cannot be edited and cannot be published again; its versions and submissions stay readable. An approval workflow bound to the form does not start new requests either.
Deleting and restoring
Section titled “Deleting and restoring”Delete moves the form to the trash. A form that has submissions must be archived before it is deleted; its submissions are kept when it is deleted. You can restore a deleted form from the Forms tab of the System → Trash page.
Sharing a form as a template
Section titled “Sharing a form as a template”The templates in the Create from a template gallery are published and updated by the Defthand team. If you would like to propose one of your forms as a template everyone can use, get in touch with the Defthand team.
Related pages
Section titled “Related pages”- Form designer
- Sharing a form and public links
- Workflows: binding a published form to an approval workflow.