# Forms and share options

A form asks a user for something beside the file: an order number with an upload, an agreement at login, a reason for a copy. The forms are built once in [Custom forms](Prefs-WebInterface-Custom-Forms.md) of the Preferences. The card **Forms** on the [WebInterface](Users-WebInterface.md) tab of a user decides where this user meets them.

This page also covers the two buttons that carry settings of their own: **Custom Share** and **Set Meta Property**.

## The card Forms

Each list offers the forms of the server, and an empty line for "none". On a server without forms the lists are empty: make a form first.

| List | The form is shown | What the answers are for |
|---|---|---|
| **WebInterface Common Upload Form** | once per upload, for all files together | they travel with every file of the upload and are there for events and jobs |
| **WebInterface Per File Upload Form** | for each file of the upload | they travel with that file |
| **WebInterface Message Form** | at login, before the file list | see below |
| **WebInterface Cut/Copy/Paste Form** | when the user pastes | the reason for a copy or move, for the log and for events |
| **Custom Event Form** | when the user presses a **Custom** button | the fields of a [custom event](Users-Events-Custom.md) |

### The message form

A form at login is the place for a notice the user must read or agree to: terms of use, a maintenance notice.

| Setting | What it does |
|---|---|
| **Show after every login** | on: at every login. Off: once, the first time. |

A form whose entries are marked required cannot be skipped. Accepting it runs the user's events with the trigger **Accepts disclaimer**: see [The event editor](Users-Events-Editor.md#triggers).

### Using the answers

What a user typed into an upload form is kept with the upload. In the mail of an event, and in the steps of a job that the event starts, a field named `project` is `{meta_project}`. That is how "upload with an order number" becomes "file is moved to the folder of that order": see [Running a job from an event](Users-Events-Plugin-Designer.md).

## Custom Share

The button **Custom Share**, added in [Buttons](Users-WebInterface-Buttons.md), is a share button with the answers filled in and the questions you choose hidden. **Create Folder & Share** opens the same dialog. It has two halves.

**The values**, as the share shall be made:

| Field | What it is |
|---|---|
| **Share Method** | **Internal Share**: with other users of this server. **External Share**: with people outside, by a link. |
| **Direct link to file?** | the link leads straight to the file, not to a page |
| **Usernames (comma separated)**, **Select multiple users quickly** | for an internal share: with whom |
| **Internal share permissions** | Download, Upload, Delete |
| **Share Type** | **Copy**: the files are copied for the share. **Reference**: the share points at the originals. **Move**: the files are moved into the share. |
| **Send Email** | a mail with the link is sent |
| **Expires in (days)** | how long the share lives |
| **Maximum number of uses** | how often it can be used; **Unlimited** |
| **From**, **To**, **CC**, **BCC**, **Reply To**, **Subject**, **Body** | the mail |
| **Comments**, **Keywords** | notes on the share |
| **Options** | **Advanced**, **Attach Thumbnail**, **Attach Files**, **Full Access** |
| **Hide download button** | the receiver can look, not download |
| **Full Access permissions** | Download, Upload, View, Delete, Delete Folder, Create Folder, Rename, Resume Transfers |
| **Alternate TempAccount** | another account to take the share's settings from |

**Visible in Share window**: a list of every row of the share window, each with a tick. A row without a tick is not shown to the user, and the value above is used as it is.

A button "Send to customer" so can be: external, reference, 14 days, mail on, with only **To** and **Body** left to fill in.

To change the share window for the ordinary **Share** button, use the group **Share Window** in [Customizations](Users-WebInterface-Customizations.md#share-window).

## Set Meta Property

The button **Set Meta Property** lets a user store facts with a file: a status, a customer, a due date. When it is added, it asks:

| Question | Means |
|---|---|
| **Custom Form To Use?** | the form whose fields are stored |
| **Hide Key/Value Pair fields?** | **No**: beside the form, the user can add free names and values. **Yes**: only the form. |
| **Position of custom form** | **Above** or **Below** the free fields |

The stored values belong to the file and can be shown as columns of the file list and searched for.

## Things to know

- A form is found by its name. Rename a form in the Preferences, and choose it again here.
- The same form can be used in several places and by many users.
- Uploads over FTP and SFTP have no forms: nothing can be asked there. A job that needs the answers must cope with files that came without.
