Created
February 7, 2019 11:39
-
-
Save renatocron/49902b6db51cc4fe1ce0669eb6ca6125 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question group: Atividade física (ID:26) | |
Code: q3 : (Optional question) | |
Question: How much time per day do you do vigorous intensity activities at work? if(is_empty(q3_m), 1, q3_m <= 59) && if(is_empty(q3_h), 1, q3_h <= 16) && if( ! is_empty(q3_h) && q3_h == 0 && q3_m == 0, "Ambos não podem ser zero", if(is_empty(q3_h) && ! is_empty(q3_m) && q3_m == 0, "Você deve preencher pelo menos com 1 minuto ou deixar ambos campos vazios.", "")) if(if(is_empty(q3_m), 1, if(q3_m < 60, 1, 0)) && if(is_empty(q3_h), 1, if(q3_h <= 16, 1, 0)), '', 'valor deve ser menor que 16 horas e 59 minutos') | |
Help: | |
Type: Multiple numerical input | |
Mandatory: No | |
Relevance equation: ! is_empty(q2.code) | |
Hide tip: 1 | |
CSS class(es): force-hide-tips hour-minute-input | |
Maximum characters: 3 | |
Minimum value: 0 | |
Integer only: 1 | |
Maximum value: 59 | |
Question validation equation: if(is_empty(q3_m), 1, q3_m <= 59) && if(is_empty(q3_h), 1, q3_h <= 16) && if( ! is_empty(q3_h) && q3_h == 0 && q3_m == 0, 0, if(is_empty(q3_h) && ! is_empty(q3_m) && q3_m == 0, 0, 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment