APPSETTINGISSUE : AADHAVAN

This commit is contained in:
aadhavan valli 2024-02-10 11:41:36 +05:30
parent 3a5087d1a2
commit ace083b56c
2 changed files with 8 additions and 5 deletions

1
AppSetting.json Normal file
View File

@ -0,0 +1 @@
{"AppSetting":[""]}

View File

@ -910,8 +910,8 @@ function openPopup() {
{value: 'WorkArea', label: 'Work Area'},
{value: 'SubTitle', label: 'Sub Title'},
{value: 'MathCheckbox', label: 'Math'},
{value: 'TextQuestionButton', label: 'Text Question Button'},
{value: 'MCQQuestionButton', label: 'MCQ Question Button'}
{value: 'TextQuestionButton', label: 'Text Question'},
{value: 'MCQQuestionButton', label: 'MCQ Question '}
];
radioOptions.forEach(option => {
@ -986,8 +986,9 @@ function submitValues() {
<script>
function popupCheck() {
const parentFolder = path.dirname(__filename);
const filePath = path.join(parentFolder, 'mathEnable.json');
// const parentFolder = path.dirname(__filename);
// const filePath = path.join(parentFolder, 'mathEnable.json');
const filePath = `AppSetting.json`;
fs.readFile(filePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading file:', err);
@ -995,8 +996,9 @@ function submitValues() {
}
const jsonObject = JSON.parse(data);
var aa= jsonObject.mathEnable;
var aa= jsonObject.AppSetting;
const inputString = aa[0];
console.log(inputString);
const valuesArray = inputString.split(', ');
valuesArray.forEach(value => {