Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in response field rendering #134

Open
JulienCarmona opened this issue Oct 8, 2024 · 0 comments
Open

Error in response field rendering #134

JulienCarmona opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
Type: Bug Something isn't working

Comments

@JulienCarmona
Copy link
Contributor

Env

PROD Collecter

Survey

{
  "id": "lsbmqdvt",
  "label": "Enquête Filière Automobile"
}

Bug Descirption

Wrong display of "réponse simple" during visualization

Comportement attendu

Display the response field properly

Screenshot

bug
image

ok
image

Additional Context

Cannot reproduce.
Maybe was due to conflict between external variable and controls in question ?

Lunatic model - question 7

{
    "id": "question-lp8g3yo1",
    "componentType": "Question",
    "page": "1",
    "label": {
        "value": "\"7\\. \" || \"Quelle est la durée en mois de cet exercice ?\"",
        "type": "VTL|MD"
    },
    "conditionFilter": {
        "value": "true",
        "type": "VTL"
    },
    "components": [
        {
            "id": "lp8g3yo1",
            "componentType": "InputNumber",
            "mandatory": false,
            "page": "1",
            "min": 0.0,
            "max": 24.0,
            "decimals": 0,
            "controls": [
                {
                    "id": "lp8g3yo1-format-borne-inf-sup",
                    "typeOfControl": "FORMAT",
                    "criticality": "ERROR",
                    "control": {
                        "value": "not(not(isnull(DUREE_EX)) and (0>DUREE_EX or 24<DUREE_EX))",
                        "type": "VTL"
                    },
                    "errorMessage": {
                        "value": "\" La valeur doit être comprise entre 0 et 24.\"",
                        "type": "VTL|MD"
                    },
                    "type": "SIMPLE"
                },
                {
                    "id": "lp8g3yo1-format-decimal",
                    "typeOfControl": "FORMAT",
                    "criticality": "ERROR",
                    "control": {
                        "value": "not(not(isnull(DUREE_EX))  and round(DUREE_EX,0)<>DUREE_EX)",
                        "type": "VTL"
                    },
                    "errorMessage": {
                        "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\"",
                        "type": "VTL|MD"
                    },
                    "type": "SIMPLE"
                }
            ],
            "hierarchy": {
                "sequence": {
                    "id": "lp8fz42d",
                    "page": "1",
                    "label": {
                        "value": "\"I - \" || \"Données de cadrage\"",
                        "type": "VTL|MD"
                    }
                },
                "subSequence": {
                    "id": "lubcmrse",
                    "page": "1",
                    "label": {
                        "value": "\"Votre chiffre d'affaires\"",
                        "type": "VTL|MD"
                    }
                }
            },
            "unit": "mois",
            "response": {
                "name": "DUREE_EX"
            },
            "description": {
                "value": "Format attendu : un nombre en mois entre 0 et 24",
                "type": "VTL|MD"
            }
        }
    ]
}
@JulienCarmona JulienCarmona added the Type: Bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants