Pular para o conteúdo principal

FV Decipher Support

Todos os tópicos, recursos necessários para FV Decipher.

Base de Conhecimento da FocusVision

Closing a Survey

Overview

You can use the Logic Library to close a survey at a pre-specified time. This is done using the close logic node.

1: Logic Syntax

To schedule a survey to close using the close logic node, you will need to add a <logic> tag to the survey, specifying both a label and uses="close.1", as well as the desired closure date and time:

<logic uses="close.1"  label="close" close:at="YYYY-MM-DD HH:MM" / >

For example, the code below would close a survey just as if the "close" action was performed at approximately 17:45 on October 20th:

<logic uses="close.1" label="close" close:at="2017-10-20 17:45" / > 

There can be up to 10 minutes of delay depending on what other jobs are scheduled to run close to that time, and the date format passed as close:at is always YYYY-MM-DD HH:MM.

A few other things to keep in mind:

  • The close node runs only if the survey is live.
  • If the survey cannot be loaded, this node (like other scheduled nodes) will retry after 1 hour, then 2 hours etc.
  • The close action will run once per survey and per scheduled time. For example, if your close logic node labeled "close" is scheduled to run at 16:45 and it runs and closes the survey, if you reopen the survey, it will not run again, unless you re-label it or change the time. At which point, it is considered a new instruction to close the survey.

To undo a scheduled close, simply remove the close logic node and reload the survey.

  • Este artigo foi útil?