Coleta offline
Como levar formulários e listas de respondentes para um dispositivo, coletar dados sem conexão e como as respostas são enviadas quando você volta a ficar online.
O trabalho de campo acontece onde o sinal não chega. O CommonLynk Forms pode ser instalado em um telefone ou tablet e usado sem nenhuma conexão, guardando no dispositivo o que você coleta até que possa ser enviado.
Instalar o Forms em um dispositivo
Abra a lista de formulários no navegador do dispositivo. Onde o navegador oferecer suporte, um banner propõe: Adicione o CommonLynk Forms à sua tela inicial para uso offline, com um botão Instalar e um botão Mais tarde.
Escolha Instalar e um ícone do Forms é adicionado ao dispositivo junto aos outros aplicativos. Não há nada a baixar de uma loja de aplicativos: o que você instalou é a própria plataforma, empacotada para abrir como um aplicativo.
Levar os formulários para o dispositivo
A collector's device ticks for download the forms that collector is assigned to, the forms it already holds, and the forms marked Available to all collectors in their Settings. The rest are offered behind Show all. The setting decides what a device downloads by default, never who may open a form.
The device button in the top bar opens On this device (it stays in the top bar at every width; on a form's fill page it sits beside the ⋮ menu). It is a short summary, the same on every page: how many forms are ready for offline use, how many drafts and how many responses waiting to send are on this phone, each a link (the forms list, Responses and the outbox), and Check for updates. On a form's own page it starts with that form: ready or not, its version, its drafts and what is waiting. The forms you collect on are chosen on the forms list, under Forms for offline use: each form, the version the device holds and whether it is ready. A form with a respondent list is ready only when its list is on the device too, and the list shows how many people it holds and when it was last updated.
On wifi, forms and their respondent lists download in the background, with nothing to answer. On mobile data, and whenever the browser cannot tell which kind of connection it has (only Chrome on Android reports this), nothing large downloads by itself: the readiness line says what is waiting and how large it is, and a tap downloads it. This is checked when your home page opens (your dashboard, or the forms list if that is where you land after signing in), when you open Forms for offline use on the forms list, and whenever the connection comes back. Opening a form that is not yet on the device while on mobile data asks you once, stating the size.
While forms download, a slim line at the top of every page says where the download is: "Downloading forms: 3 of 5". The total stays the same until that batch is done; a form that arrives meanwhile starts the next batch. If the app or the browser is closed during a download, the next time it opens the line says "Finishing the forms download: 3 of 5" and continues the same batch. A form that could not be downloaded is named with the reason, such as a weak connection or not enough space on the phone, with Try again; the others go on. When everything is downloaded, the line says "All forms are ready offline" once, then goes.
In the CommonLynk app a download also finishes in the background: when the app sends saved forms while it is closed, it finishes the current download batch too, on the network chosen under Send automatically (wifi only, or wifi or mobile data). It downloads only the forms already chosen for offline use, and removes nothing.
Quando uma versão mais recente de um formulário é publicada, um dispositivo que tem conhecimento dela baixa a nova versão antes de iniciar uma nova resposta; sem conexão, a página informa que a atualização é necessária primeiro. Uma resposta já em andamento é concluída na versão em que foi iniciada.
With no connection, tapping a form that is ready on the device, in the forms list or on Fill Survey, opens it for a new response. A page that is not on the device says so, and links to Forms on this device.
A form that is ready on the device opens the same page with or without a connection: the same version, the same first page, the same buttons, the same question when you press Exit and the same checks. With a connection the device first asks whether its copy is still current. After a new version is published, or an update to CommonLynk changes the form page, the device replaces its copy at its next update, and until then opens the page from the server. Save keeps the response on the device, under In progress on this device. Without a connection the phone collects on the version it holds, and the page says when a newer one exists.
Trabalhar sem conexão
Offline, o trabalho continua normalmente. As respostas ficam guardadas no armazenamento do próprio navegador nesse dispositivo: uma resposta que você está preenchendo é mantida como rascunho, e uma resposta que você envia é adicionada a uma fila aguardando envio.
Enquanto o dispositivo está offline, um banner no topo do formulário informa isso e mostra quantas respostas estão aguardando. Enviar offline adiciona a resposta à fila e a confirma com a mensagem Salvo offline. Uma resposta sem uma resposta obrigatória não é aceita no dispositivo; a página mostra o que está faltando.
Photo, video, file and voice questions work without a connection. What you capture is kept on the phone with the response and sent with it, so nothing is lost when the signal drops. Photos are made smaller on the phone before they are kept. A recording stops and is kept if you leave the app or move to another question. When the phone is low on storage it says so before you record: send your saved forms.
Uma resposta para uma nova pessoa pode ser iniciada sem conexão quando o formulário e a sua função permitem cadastrar pessoas. Os dados da pessoa acompanham a resposta, e a pessoa é cadastrada quando a resposta chega ao servidor.
Quando o formulário tem uma lista de respondentes, a lista fica guardada no dispositivo. Toque em Preencher e a página pergunta Quem você está entrevistando? Você pode pesquisar por documento de identidade, telefone, nome ou referência, sem sinal. Quando a pessoa é encontrada, o formulário abre com respostas preenchidas a partir do perfil dela, identificadas com a data da lista no dispositivo. Quando ninguém corresponde, você pode cadastrar uma nova pessoa, se o formulário e a sua função permitirem; domicílios e estabelecimentos que não estão na lista são cadastrados online. Uma pessoa que não está na lista, ou que ainda não atende ao critério do formulário, pode mesmo assim ser entrevistada, e a página informa que a resposta ficará retida aguardando uma decisão.
A form that uses a platform list carries that list on the phone, in every language the form uses, including the links between levels, so a location question that follows another one works with no signal. When the list changes, the form gets a new version and "Check for updates" downloads it.
The form on a phone
On a phone the fill page keeps the screen for the question. The top bar holds ✕ Exit, the form's name and the ⋮ menu. Below it, one line names the section you are in and how far along you are, and one small line says who the response is for. Back and Next stay in a bar at the foot of the screen, and on the last screen Next becomes Submit. Saving stays in the top bar: Save beside the ⋮ menu on a wider screen, Save progress inside it on a narrow phone.
When a response cannot be submitted yet, one summary opens listing each answer to check, and each line is a link to its question. A reason the server gives sits under the question it is about.
All questions, in the bar at the foot of the screen, lists every question you can reach, in the form's order, and says of each whether it is answered, required and not answered yet, or not answered, in words and with a mark. Each entry of a repeat is a group of its own, named by the repeat, its number and its first answer, for example Crop 1 followed by Onion: open it to see its questions, and the entry you are in opens by itself. A repeat with no entries yet is one line that opens the repeat. Choose a line to go to that question. Questions the form's rules hide, calculations and notes are not listed.
The last line of the ⋮ menu names the version of the form you are filling and, once this device keeps the form for offline use, the day it downloaded it, for example Version 8 · downloaded 18 Nov. On this device shows the same on each form's row.
When the device learns of a newer version while a response is open, one line says so. The response is finished on the version it started on, never switched under it, and you update the form afterwards.
O que a lista de respondentes no telefone contém
A lista contém o que uma pessoa coletora de dados precisa para encontrar as pessoas. Os nomes, os números de referência e os quatro últimos caracteres de cada número de identificação ficam visíveis. Um campo de perfil só fica no telefone em formato legível se o formulário o preencher a partir do perfil. Os números de identificação e de telefone são transmitidos como hashes, usados apenas para pesquisa: eles não são exibidos, o que os oculta de um olhar casual, mas não os protege. Campos de condição de proteção, como grupo populacional e deficiência, nunca vão para um telefone.
A lista é criptografada no dispositivo. Isso impede que alguém leia o armazenamento copiado do telefone. Não impede que alguém use o telefone desbloqueado.
Quando a lista sai do telefone
A lista de respondentes é retirada do telefone:
- quando você sai, inclusive sem conexão;
- quando outra pessoa entra no telefone;
- quando o formulário, ou a sua lista, deixa de estar atribuído a você;
- quando uma pessoa gestora marca a coleta do formulário como concluída.
Depois que uma pessoa gestora marca a coleta como concluída, nenhum dispositivo volta a baixar o formulário e nenhuma nova resposta é iniciada nele offline. Cada dispositivo remove de si a página e a lista de respondentes do formulário na próxima vez que se conectar, e somente depois de informar que nada relacionado a esse formulário está aguardando envio, incluindo uma resposta em andamento. O que é removido fica guardado à parte no telefone por 30 dias, pode ser restaurado em Neste dispositivo, na seção Removido deste dispositivo, e depois é excluído. Respostas tardias continuam sendo aceitas.
Uma pessoa gestora pode determinar que um dispositivo que nunca vai se comunicar, como um telefone perdido ou quebrado, seja limpo mesmo assim. As respostas que ele não enviou permanecem nele e ainda serão enviadas se ele voltar a se conectar.
Nenhuma dessas situações remove uma resposta que ainda não foi enviada.
Rascunhos e como restaurá-los
Um rascunho é salvo automaticamente enquanto você digita, cerca de um segundo e meio depois que você para. Você não precisa pressionar nada para isso, e isso acontece com ou sem conexão.
Your drafts and the responses waiting to send are listed at the top of Responses, under On this device, online and offline. Each draft shows its title, when it was saved, how far along it is and whether the server already holds its latest save; Continue opens it on the version it was started on, where you left it.
Enviar o que você coletou
Uma resposta enviada é transmitida quando o Forms está aberto com conexão: quando uma página é carregada, quando a conexão volta e em um temporizador de nova tentativa enquanto a página permanece aberta. Em navegadores que oferecem suporte, como o Chrome, ela também pode ser transmitida em segundo plano. Uma resposta só sai do dispositivo quando o servidor confirma que a armazenou, ou que já a tinha, de modo que uma nova tentativa nunca cria uma segunda cópia.
Para enviar, é preciso estar com a sessão iniciada. Uma resposta coletada em uma conta aguarda no telefone até que essa pessoa coletora de dados entre novamente.
Uma resposta que o servidor não pode contabilizar tal como está, por exemplo, uma resposta de alguém que não está na lista, uma com um número de identificação já cadastrado ou uma com um valor que não pôde ser armazenado, é armazenada mesmo assim: como incompleta, para que a pessoa coletora de dados a conclua, ou aguardando a decisão de uma pessoa gestora. Ela não permanece no telefone.
A lista de formulários mostra quantas respostas estão aguardando envio e as que o dispositivo não conseguiu enviar, com o motivo. O envio é interrompido após falhas repetidas, e Tentar novamente o reinicia.
Se o endereço do seu espaço de trabalho mudou, as respostas ainda aguardando envio no endereço antigo são enviadas pelo Forms no endereço antigo enquanto ele ainda responder, e o Forms então leva você ao novo endereço.
A form that does not say who it is about (it has no respondent group) cannot register a new person typed on a phone. If a phone still sends one, nobody is registered: the response is kept with every answer and the details typed, and waits in Needs resolution for someone to decide.
The first time someone signs in through the CommonLynk app on a phone, a page called Getting this phone ready for field work shows what that person needs offline: their settings and language, the lists of places, the forms, the respondent lists and the pictures and files the forms use, each with a mark and a count, and the space used on the phone. Done, start working becomes available once everything is on the phone; Start now goes straight on while the rest downloads in the background. It is the same download as the On this device panel, and someone with nothing to download offline never sees the page.
The app's own screens appear in every language the workspace offers, with no app update. Their texts come from the platform's translations; for a language those do not cover yet, the workspace can fill the missing texts in its Translation Manager, under App texts, and until then those texts show in English.
Signing out on a shared phone
Responses not yet sent and drafts are encrypted on the phone. When you sign out with responses still waiting, you are asked first: send them now, or delete them from the phone and sign out. Nothing is deleted unless you confirm. A session that times out keeps everything.
O que exige conexão
Algumas coisas exigem conexão:
- No formulário de nova pessoa, a escolha de uma localidade abaixo do primeiro nível e a verificação de um número de telefone.
- O cadastro de um domicílio ou de um estabelecimento que não está na lista de respondentes.