Skip to content

Data and languages

In the editor, Data on the start side holds what each document made from the template needs, and Languages on the end side the languages its documents can be made in. See Build a template in the editor for the rest of the editor.

Data lists what each document needs, never as a file to write: the A value a Docs document needs, such as the client's name, an amount, a date or a list of covers. The form that fills the document asks for each one.Glossary →, the computed values and the examples.

  • Data fields are the values each document gets, like the client’s name or the What the client pays for a contract over a term, taxes and fees included. It is billed in installments.Glossary →. Add a field asks for its name, the name A level of a product, such as "Third party" or "Comprehensive": the covers it includes, with their values.Glossary → use (made from the name until you change it), its kind of value (text, number, amount, date, date and time, yes or no, choice, picture, group of fields, list) and what the kind needs: a currency, decimals, the options of a choice with their labels in each language, what each item of a list is. Every document must give it refuses a document without it. The menu of a field changes, moves or removes it; removing a field the page shows says how many places will stay empty.

  • Bring in fields makes them from what you already have: a sample file (JSON with the data of one document, or CSV or Excel with a header row and a row per document), whose values give each field its kind; what a Rate Everything Rate needs to price one insurance product: its models, rate tables, lists of values and constants.Glossary → takes and the results it gives; or what the responses of a Studio form hold. You see the fields before anything changes, and choose to add what is new or replace them. The values of a file become an example.

  • Fields from a Rate tariff keep their link to it: the template remembers the tariff and the version they were read from, and the data says so at the top (From the Rate tariff …, version …). A document can then be priced by that tariff when it is asked for (see Documents over the API). The template is checked against the version of the tariff in force today, with your own rights in Rate:

    • Fits the version in force: nothing to do;
    • Version … of the tariff is in force and still fits: a newer version gives everything the fields show; Bring the fields in again reads its new fields, if you want them;
    • Version … of the tariff no longer fits: the checks name each field, for example a result the tariff no longer gives. A result that is gone, or of another kind, stops publishing until it is fixed; Bring the fields in again reads the fields of the The version of a Docs template that documents are made from today: the newest one whose date has come.Glossary →, and you choose what to keep;
    • Not checked: you may not read this tariff in Rate. Someone who may can check the template.

    When someone publishes a version of the tariff in Rate, Rate lists the templates it would no longer fit.

  • Fields from a Studio form keep their link the same way: the template remembers the form and the version they were read from (From the Studio form …, version …), and is checked against the version online, with your own rights in Studio. Fits the version online, Version … of the form is online and still fits, or Version … of the form no longer gives every field: the checks name each field the form no longer gives, or gives as another kind of value, which documents made from its responses may show empty. They are points to look at, not problems that stop publishing: the form’s own settings fill its documents, and Studio checks them. Bring the fields in again reads the fields of the version online. When someone publishes a version of the form in Studio, Studio lists the templates it would no longer fit.

  • Put a field on the page with one click: at the end of the selected text, or as a new line “Name: value” after the selected A piece of a page that you add, move and set up: in a Studio form, a question, a text, a picture or a section; in a Docs template, a heading, a paragraph, a table or a picture.Glossary →. Or drag it onto the page, or onto a text. A list becomes a table with a row for each item; a group, a line for each of its fields. A field of the items of a list goes into a table row or a part repeated for that list.

  • Computed values are worked out once from the data, like a total or a date a year later, and shown anywhere like a field. In a formula, the data fields and the computed values read by their names, in the language shown, each in its kind’s colour with its value in the example; a field of a group shows under the group. The suggestions open as you type a letter, each by its name with its value in the example; a name is found by the name formulas use as well as by the name people read, in any letters. Each function says what it does, with its arguments and an example, and inside its brackets a line above the cursor shows the argument being typed. Under the formula, a line says what kind of value it gives as you type, or in words what is missing or wrong.

  • Examples are values to see the pages with. Made up from the data fields is always there; Add an example starts from made-up values, typed in the same form as filling a document. Click an example to show the pages with it.

Languages says which languages documents can be made in, besides the template’s own, and how many texts each still needs.

  • Switch a language on to translate the template into it. Choose its texts in the list: a short text is translated right there; a text with data fields or several lines opens on the page, in that language, with the pencil. Only the texts to translate keeps the ones left, and Show it on the page selects the block.
  • Show the pages in a language with Show the pages, or the language list at the top, which counts the texts left to translate. On the page, a text not translated yet is outlined Not translated, and the settings of its block say so, with Translate it.
  • Until a text is translated, documents in that language show it in the template’s language.