Hey,
Is there a way to add Multiple Checkboxes in an Alert?
Hi brother,
I made that example here.
See if it helps.
```
Swal.fire({
title: 'Particularidade',
html: '
return {alcool: alcool, cigarro: cigarro}
}
}).then((result) => {
Prescricao.usoAlcoolica = result.value.alcool
Prescricao.usoCigarro = result.value.cigarro
Swal.fire(`Babe?: ${result.value.alcool}\nFuma?: ${result.value.cigarro}`)
})
Please add native support for this given a list of options, it should be doable.
Most helpful comment
Hi brother,
I made that example here.
See if it helps.
```
Swal.fire({
title: 'Particularidade',
html: '
Alcool
' +'
Cigarro
',confirmButtonText: 'confirmar',
preConfirm: () => {
var alcool = Swal.getPopup().querySelector('#alcool').checked
var cigarro = Swal.getPopup().querySelector('#cigarro').checked
console.log("Alcool = " + alcool + " Cigarro = "+ cigarro)