GROUPQUESTIONDESCRIPTIONMANDATORY : AADHAVAN

This commit is contained in:
aadhavan valli 2024-02-16 14:57:00 +05:30
parent 6cdf19d212
commit 86427dbb3f
3 changed files with 10 additions and 7 deletions

View File

@ -4789,10 +4789,12 @@ function check_Remove_Empty_Question(IdToRemove , DeleteElement=0) {
} }
else if(newVariableWithoutNumbers == "subSectionDescriptionWorkarea_"){ else if(newVariableWithoutNumbers == "subSectionDescriptionWorkarea_"){
var subSectionDescription = document.getElementById(IdToRemove).querySelector('p').innerHTML; var subSectionDescription = document.getElementById(IdToRemove).querySelector('p').innerHTML;
console.log(subSectionDescription != '<br>'); attrId= subSectionDescription
if(subSectionDescription != '<br>' ){ // console.log(subSectionDescription == '<br>');
attrId= subSectionDescription; // if(subSectionDescription !== '<br>' ){
} // attrId= subSectionDescription;
// // attrId ='';
// }
} }
else{ else{
const previousElement = input_text_value.previousElementSibling; const previousElement = input_text_value.previousElementSibling;
@ -4863,7 +4865,7 @@ function check_Remove_Empty_Question(IdToRemove , DeleteElement=0) {
collect_Empty_Question_Id(newArrayString); collect_Empty_Question_Id(newArrayString);
} }
} }
else if(attrId === '' || attrId == '<p><br></p>' || attrId === '<p><br></p>') { else if(attrId === '' || attrId == '<p><br></p>' || attrId === '<p><br></p>' || attrId === '<br>') {
// alert('3') // alert('3')
// console.log('check empty question : ', attrId); // console.log('check empty question : ', attrId);
@ -4871,6 +4873,7 @@ function check_Remove_Empty_Question(IdToRemove , DeleteElement=0) {
var newArray = parsedArray.push(IdToRemove); var newArray = parsedArray.push(IdToRemove);
} }
const newArrayString = JSON.stringify(parsedArray); const newArrayString = JSON.stringify(parsedArray);
// console.log(newArrayString);
collect_Empty_Question_Id(newArrayString); collect_Empty_Question_Id(newArrayString);
} }

View File

@ -1 +1 @@
{"AppSetting":["WorkArea,SubTitle,MathCheckbox,TextQuestionButton,MCQQuestionButton"]} {"AppSetting":["WorkArea,MathCheckbox,TextQuestionButton,MCQQuestionButton"]}

View File

@ -1 +1 @@
{"AppSetting":[""]} {"AppSetting":["SubTitle"]}