Actions

Question type - Equation/it: Difference between revisions

From LimeSurvey Manual

(Created page with "=Altro=")
(Created page with "{{QS:Pagina_interruzione}}")
Line 80: Line 80:
=Altro=
=Altro=


{{QS:Page_break}}
{{QS:Pagina_interruzione}}


{{QS:scale_export}}
{{QS:scale_export}}

Revision as of 07:48, 16 August 2023

Breve descrizione

 Hint: Diversamente da tutti gli altri tipi di domanda, se un'equazione è nascosta, viene comunque calcolata e il suo valore viene memorizzato nel database.


 Hint: Il tipo di domanda Equazione consente di assegnare un valore a un'altra domanda. Scopri come utilizzare l'operatore di assegnazione.


Template:Avviso

Questo tipo di domanda consente all'autore di creare un'equazione (ad es. un calcolo o un report su misura) e di salvarla in una variabile del database. Le equazioni possono utilizzare qualsiasi sintassi supportata da ExpressionScript. Se stai gestendo valori numerici assicurati di utilizzare l'impostazione di domanda avanzata "Solo numeri" come spiegato di seguito.

Di seguito è possibile trovare un esempio su come utilizzare questo tipo di domanda:


File:Equazione q ex 01.png


File:Equazione q ex 02.png


Esempio: Limesurvey_survey_BMIsample.lss.zip.

Modifica di un'equazione

Utilizzo dell'impostazione dedicata

Il modo migliore per modificare l'equazione è utilizzare un'impostazione dedicata: ciò consente di utilizzare la stessa equazione per lingue diverse e di essere sicuri che nessun codice HTML sia integrato nell'equazione. Ciò ti consente di mostrare una frase completa all'utente ma di salvare solo il valore necessario nel database: ad esempio, inserisci {weightkg/tall} nell'impostazione dell'equazione e mostra "Your BMI is {self.NAOK}".

Se hai bisogno di Expression inside : devi aggiungere la parentesi graffa.

Utilizzo del testo della domanda

Puoi apportare modifiche tramite l'editor HTML/WYSIWYG o dalla sorgente HTML:

  • Utilizzando l'editor WYSIWYG:


File:Equazione-01.png


  • Dalla fonte HTML:



Le modifiche nel codice sorgente sono consigliate quando si desidera registrare nella tabella delle risposte un testo pulito o un valore numerico pulito. Modificando la fonte, puoi rimuovere/eliminare qualsiasi codice HTML che possa influire sul processo di archiviazione.



Suggerimento: Per controllare diversi editor HTML, consulta la sezione wiki sulla Modalità editor HTML.

Opzioni generali

QS:Obbligatorio

QS:Rilevanza

Visualizzazione

QS:Nascosto

QS:Classe CSS


Relevance help for printable survey (printable_survey_relevance_help)

Description

If you wish to print a survey, you can also print the relevance equations for each question. But, if you wish to offer instead an explanation rather than the expression on the printed form, fill in this box with the text explanation for the relevance equation.

Valid values

  • Any text and/or numbers you wish to be displayed on the printable form.


Logica

Template:DQ:Equazione

Altro

QS:Pagina interruzione


SPSS export scale type (scale_export)

Description

This is used for SPSS export only. This attribute overrides the default scale guessed by SPSS. To learn what the different measurement scales do, please read the related SPSS documentation.

Available options

  • Default (default)
  • Nominal
  • Ordinal
  • Scale


Numbers only (numbers_only)

Description

If you enable this option, the participant can only enter numbers in the text box(es).

For the equation question types, this setting indicates that the result could only be a number, not a string. This will guarantee proper calculations/conversions in follow-up equations regarding the decimal mark.

Behavior by question type

  1. Default: If the subject enters a value that is not a number, that value is immediately cleared from the text box so that the subject can enter an appropriate value.
  2. Array (Texts): If the numbers only option is disabled, the "Show totals for" and "Show grand total" options will be overruled, while the total text boxes will not be displayed.
  3. Equation: Enabling this option will force the equation results to be converted to a numeric value. If the equation result is not a number (and not blank), the equation will return NaN, being saved as an empty string in the response table.

Available options

  • On
  • Off (default)


Statistics

Show in public statistics (public_statistics)

Description

This attribute allows the survey administrator to chose if a particular question results should be displayed to the survey participants after they submitted the survey.

Note: To have the statistics displayed on the last page, do not forget to enable this functionality from the presentation & navigation settings. Otherwise, no statistics link will be displayed at the end of your survey.

The default setting for each question is 'Off' (=Do not show the question statistics to the respondents). You have to enable this for every single question if you want to show the survey statistics of that (those) particular question(s) to the survey participants after the survey submission.

Available options

  • On
  • Off (default)



Display chart (display_chart)

Description

This attribute allows the survey administrator to choose if a chart that contains the question results should be displayed to the survey participants after they filled out the survey.

Note: To have the chart displayed on the last page, you have to enable the following options:


Available options

  • On
  • Off (default)



Chart type (chart_type)

Description

This attribute allows the survey administrator to choose which type of chart will be displayed to the respondent once he/she finished filling out the survey.

Note: Do not forget to change the question and survey settings in order to have the charts displayed at the end on the survey. For more details, check the wiki section on the display chart question attribute.

Available options

  • Bar chart
  • Pie chart
  • Radar
  • Line
  • PolarArea
  • Doughnut