Skip to content
Snippets Groups Projects
Commit 6e1e70cf authored by Saket Agrahari's avatar Saket Agrahari
Browse files

Merge branch 'feature/COMP-253-Progress-bar' into 'develop'

progress bar issue [COMP-253][COMP-254]

See merge request !65
parents 8ae7bea1 95569c68
Branches
Tags
1 merge request!65progress bar issue [COMP-253][COMP-254]
This diff is collapsed.
......@@ -14,7 +14,19 @@ function ProgressBar({ surveyModel, pageNoSetter }) {
const filterCallback = (question) => {
return question.value !== null && question.value !== undefined;
if(question.value === null || question.value === undefined || question.value===""){
return false;
} // For text and comment and other types
if(question.getType()==="checkbox" && question.value.length == 0) {
return false ;
}//For empty checkbox
if (question.getType()==="multipletext" &&
((Object.keys(question.value).length === 1
&& Object.values(question.value)[0]=== undefined)
|| Object.keys(question.value).length === 0 )){
return false
}// For empty multipletext
return true;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment