Connections and Rate in forms
A form can work with your other systems while it is filled. A connection (the address of another system and its key, set up once in the The administration app of the suite, where your administrators manage its people, roles, connections and settings. It is also where everyone signs in.Glossary →) gives the options of a choice, checks an answer, such as the communes of a postal code, or looks a record up, such as a policy or a vehicle, to show it and fill questions with it. The Price from Rate 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 → shows a price calculated by a Rate Everything Rate needs to price one insurance product: its models, rate tables, lists of values and constants.Glossary → from the answers. The server makes every call: no secret ever reaches the respondent’s browser.
Who can do it
Section titled “Who can do it”- Adding a Another system the suite calls for you, such as a lookup service or a tool of your own, with its address and its access, set once in the console.Glossary → is done in the console, with Connections: Full (see Connections).
- Using a connection or a price in a form needs Studio: forms: Full. Choosing the tariff from a list also needs Rate: tariffs: See; without it, type the key of the tariff.
- A price from Rate needs Rate in your Your company as the suite knows it: its people, its records and its settings. Everything you see belongs to one organization, and nobody from another organization sees it.Glossary →’s What your organization subscribes to: the apps and options it may use, and limits such as the number of users or the storage.Glossary →, and a tariff with a The version of a Docs template that documents are made from today: the newest one whose date has come.Glossary →.
Options from a connection
Section titled “Options from a connection”- Add a choice question (One choice, Several choices, Picture choice or Ranking) and open its settings, Answers, Options.
- Under Where the options come from, choose From a connection.
- Choose the Connection, then the Address to call, added to the address of the connection. Answers can go in it, for example
/communes?codePostal={{ postalCode }}. - Say Where the list is in the reply, the Text shown and the Value kept of each item, and if you wish a Picture (optional).
The options are listed when the respondent reaches the question, from the answers given so far. Try it in Preview.
Options from a product of the catalogue
Section titled “Options from a product of the catalogue”With Ops, a choice can offer the options of a product of your catalogue, as the contract records them.
- In the question’s Options, under Where the options come from, choose From a product of the catalogue.
- Choose the Product, then its Options: a group of options that exclude each other, such as a prevention level, gives one choice among its options; or its options outside any group.
- For a group, use a One choice question and leave it optional when “none” is an answer.
The answer is the key of the option, the one Ops records on the contract, so a The path a person follows to buy your insurance online, made of steps, over minutes or days.Glossary → can hand it to Ops as it is. Publishing the form reads the options from Ops again. When a journey’s Giving a sale made in a journey to Ops as a contract, or to your own system, which confirms it received it.Glossary → may give more options of a group than the product allows, its check warns before publishing.
Check an answer with another system
Section titled “Check an answer with another system”- In a question’s Checks on the answer, Add a check, then Check with another system.
- Choose the Connection and How to ask: Read (GET) asks with the address only; Send (POST) also sends a body made from the answers (What to send).
- Write the Address to call, with answers in it if needed.
- Under What the reply says, choose:
- A yes or no value, and Where the reply says yes or no (dots for a value inside another,
0for the first item of a list); - or Something found, or nothing, and Where to look in the reply.
- A yes or no value, and Where the reply says yes or no (dots for a value inside another,
- Under The answer is accepted when, choose the case that means the answer is right, and write the Message when it fails in plain words.
The check runs on the server when the respondent has answered, and again when the form is sent.
Look a record up in another system
Section titled “Look a record up in another system”The Look up in your system block finds a record from the answers already given, such as a policy from its number or a client from their email, shows it to the respondent and can fill questions with it.
- On Build, add Look up in your system (family From your systems).
- Choose the System to ask (a connection).
- Write the Address to call, with answers in it, for example
/policies/{{ policyNumber }}. - If the other system needs it, open Advanced: How to ask is Read (GET) unless you choose Send (POST), which also sends a JSON body (What to send), and Where the record is in the reply is a path with dots, such as
data.policy, left empty when the reply is the record itself. Advanced opens by itself when one of them is set. - Under Values to read, give each value its Label, its Name in formulas, its Path in the record and its Kind of value (text, number, date, or yes or no).
- Under Questions it fills, Fill a question with a value found. While the record is found, the question takes the value and the respondent cannot change it; when nothing is found, the respondent answers it.
- Show what was found shows the values to the respondent under the question. Turn it off to only fill questions. A A step of a Rate model that finds the first row of a rate table matching its keys and copies its values.Glossary → kept Only on the server never shows them, so the switch is not offered.
The lookup runs on the server as soon as every answer it uses is given, and again when the form is sent, so the response keeps what the server found, not what the browser says. The connection’s address and key never How far a role goes among the records that belong to teams: the person's own records, their team's, their team and the teams under it, or the whole organization.Glossary → the browser. In A level of a product, such as "Third party" or "Comprehensive": the covers it includes, with their values.Glossary → and rules, policy.found says whether a record was found and policy.holder gives a value (with policy the key of the block). When the block is required, the form cannot be sent until a record is found. A lookup cannot sit in a repeated group, and a downloaded form does not run it.
The other system is asked again only when an answer the lookup reads changes, and the same lookup is answered from memory: a record found for 5 minutes, “nothing found” for 30 seconds. While forms are filled, each connection of your organization takes at most 60 lookups a minute, and one respondent’s address at most 20 of them, so a busy form or someone trying values cannot use them all; past that, a lookup says it is not possible right now and is asked again a little later. Sent forms have their own reserve of 300 lookups a minute per connection, at most 10 of them from one respondent’s address. An IPv6 address counts with its whole /64 network, in which a device can take a new address for every request. A form sent with answers that are wrong whatever a lookup finds (an email address that is not one, a required question left empty) is refused before any lookup is made, so it spends nothing. When a lookup that fills questions cannot be made as the form is sent, the form is refused with “This cannot be looked up right now. Try again in a moment.”, never accepted with whatever was typed in its questions.
Only on the server looks the record up when the form is sent, for its checks, calculations and the response, but never sends it to the browser: the respondent does not see what it finds, nor the questions it fills, which are not required, run no check, and take their value from the lookup only (what a browser sends for them is ignored). Use it for records a respondent must not read. What it gives never goes to the respondent: Studio refuses a text, a check message or a rule they see that shows it, and an email sent to an address taken from an answer leaves it out of its answers and its texts. When the respondent could still tell whether a record was found (the lookup is required, or a rule, a check, a list from a connection or the path of the form reads it), Studio warns that Whether a record exists still shows. Another lookup asked with what it gives must be kept on the server too: one that shows what it finds would show what comes from the record. When a lookup finds a record from one answer and shows it, Studio warns that Anyone could read your records: read it from two answers (a policy number and a date of birth), or keep it only on the server.
Show a price from Rate
Section titled “Show a price from Rate”- On Build, add Price from Rate (family Insurance).
- Under Rate tariff, Choose a tariff among Rate’s active tariffs. Its version in force on the day of the answer is used.
- Fill in from the tariff lists the inputs the tariff takes, under What the tariff receives: give each Input of the tariff the answer or formula that fills it. Needed by Rate marks the inputs it cannot calculate without. An input that does not apply to every respondent can be marked Can be left out: while its answer is empty the price is calculated without it, instead of waiting for it. Fill in from the tariff marks so every input Rate does not need; an input Rate needs cannot be left out.
- Under What the respondent sees, Add a result: each Result of the tariff with how it is Shown as. The first one is shown as the price; the others below it.
Shown as a List, the results sit one under the other. As a Price summary, the price is in large with its lines under it, sorted by Listed under (what the price is made of, or the options), each Written as an amount, a percentage or a number; Hide it while it is 0 leaves out an option not taken, and Price before a reduction shows the price without it struck through. On a phone the summary stays at the bottom of the screen, its lines folded behind Details. To set it beside the questions, give the page two columns and place the block in the second: it stays at the top of its column as people scroll.
Check only shows nothing while the tariff accepts the answers: use it to check that a request can be covered without showing a price. Its results are still kept with the response, and a refusal shows as with the other choices.
Rate calculates the price on the server from the answers, as soon as the inputs are answered, and again when the form is sent: the response keeps the price. Try it in Preview before publishing. See Calculate through the API for how Rate answers.
When the tariff refuses, its message shows on the block. Turn on Show a refusal on the question it is about to show it under the question the refusal is about instead: the respondent changes that answer to go on. The tariff names the input in the code of its refusal (in Rate, the code of an end that refuses), like breed or breed.NOT_COVERED; the question is the one whose answer the input is, and a refusal with another code stays on the block. For an input worked out from several answers, tick under it the questions its refusals show on: the one that shows gets it.
Studio checks what the block sends and shows against the version of the tariff in force: an input the tariff does not take or one it needs, a formula of the wrong kind, choices it does not take, a result it does not give. They show among the problems of the form, on the block, and an error stops publishing. When Rate publishes a new version, its publish dialog lists the forms it would break. When a response is sent, its price is kept with the id of Rate’s calculation, which Rate records with the id of the response. See Data between products.
When something goes wrong
Section titled “When something goes wrong”- Your organization has no connection yet: an A person whose role lets them manage the organization in the console. Every organization starts with an Administrators role.Glossary → adds one in the console, then Check again.
- The connection ”…” does not exist in your organization any more: choose another one.
- This tariff has no version in force yet: publish one in Rate before the form goes online.
- Rate is not part of your organization yet: ask your administrator to add Rate, or remove the block.
- The tariff does not take this input: Rate would refuse the calculation; remove the input, or check its key.
- Rate needs these inputs to calculate: give each listed input an answer.
- Nothing was found with these answers. Check them. (for the respondent): the system has no record for these answers.
- This cannot be looked up right now. Try again in a moment. (for the respondent): the system did not answer; the server tries again on the next answer.
- ”…” fills ”…” from ”…”, which is not one of the values it reads: choose a value listed under Values to read.