Closed NicolasKolumbic closed 3 months ago
Hello @NicolasKolumbic,
I created an example and confirmed that survey results (survey.data
) doesn't contain a Boolean value, which is located on a hidden panel. Please check my results below.
Survey JSON:
export const json = {
logoPosition: "right",
pages: [
{
name: "page1",
elements: [
{
type: "boolean",
name: "pnlVisibilityFlag",
title: "Hide Panel",
defaultValue: "false"
},
{
type: "panel",
name: "panel1",
elements: [
{
type: "boolean",
name: "question1",
defaultValue: "true"
}
],
visibleIf: "{pnlVisibilityFlag} = false"
},
{
type: "text",
name: "question2",
defaultValue: "Test"
}
]
}
],
clearInvisibleValues: "onHiddenContainer"
};
Test Results:
Survey results contain three question answers:
{"pnlVisibilityFlag":false,"question2":"Test","question1":true}
Survey results contain two answers:
{"pnlVisibilityFlag":true,"question2":"Test"}
Would you please share a problematic survey JSON / example for investigation?
Are you requesting a feature, reporting a bug or asking a question?
I am reporting a bug, I see the problem carried over from "Survey-jquery 1.9.65".
What is the current behavior?
When trying to submit a form, I notice that it keeps the fields that were previously filled in, but were later hidden.
What is the expected behavior?
You should remove those values from "survey.data" when the fields are hidden by "visibleIf".
Specify your