/

 

The manual

Self-training

Experimentation

Contact

 

Language

Send the mailing of an online questionnaire

Version without programming

Cette manipulation est possible, mais assez peu aisée, donc dans la pratique, on préfère procéder par programme, comme indiqué dans la seconde partie de ce document, même si c'est un peu plus compliqué à mettre en place.

Etape 1: on prépare le gabarit de la fiche questionnaire.
La boite aux lettre Storga qui va servir à envoyer les mails doit avoir un ou plusieurs carnets d'adresses associés. A chaque carnet d'adresses correspond un état, au niveau du formulaire de définition des champs de l'état, le bouton 'choisir les champs définissant un répertoire' permet de spécifier quel champ contient l'adresse mail, ainsi que le nom et prénom du destinataire. Pour l'un au moins des carnets d'adresses, on doit retrouver ces mêmes champs dans le gabarit de la fiche questionnaire.

Step 2: we create the files (one per mailing recipient)
To do this, we use either the 'Duplicate' function from the contextual menu of the skin template (operation to be detailed), or an applet with a Storga program.

Step 3: prepare an email with the recipient 'Form' and the URL field positioned at 'To the online form'

Step 4: select the files, then press the 'Send' button of the email.

The advantage compared to the usual systems, is that the recipient receives an email with a link that brings him in a single click on the page of his form to be completed, and that it can be pre-filled.
So we don't waste our time by asking to open an account, to log in, or to re-enter our name and other information.

By program

Here is the frame of a program which prepares a new mail which will be added just under the current form ('new_msg' instruction), then browse all the lines of a report whose identifier is 'a / b / c' ( 'report' instruction), and for each line, create a record by copying the 'x / y / z' type record ('new_form' instruction), which will be placed in a stack itself under the current form.
The form fields will be pre-filled from the data in the report line ('copy_fields' option), and a recipient will be added to the email. The email will contain a link at the bottom which allows each recipient to fill in the form associated with it ('msg_form_to' instruction).

var Str fid := form_id
var Str sid := string datetime
new_msg after fid
  msg_from_mailbox := "identifiant_storga_de_la_boite_aux_lettre"
  report "a/b/c"
    field Str prenom nom email
    new_form "x/y/z" copy_fields after fid stack sid from prenom+" "+nom
      msg_form_to prenom+" "+nom+" <"+email+">"