function edit_inline_multichoice(val, id, listGuid, fin, choices) { var dVal = val, arr = val.split(//i), b = []; if (dVal === "") { dVal = " "; } const buildOptions = (readonly) => { const buffer = []; choices.forEach((v, i) => { const inputId = `inline_${fin}_${id}_${i}_${readonly ? "readonly" : ""}`; buffer.push(`
"); }); return buffer.join(""); }; b.push("
"); b.push("
"); b.push(buildOptions(true)); b.push("
"); b.push("
"); b.push(buildOptions(false)); b.push(`✔`); b.push("
"); b.push("
"); return b.join(""); }