I have a sweetalert popup that prompts the user to change their password. I have the main input field asking the user for their current password, then I have some html with input boxes asking the user to enter their new password twice. I'd like to have the input field above the html, however I can't figure out how to do it. Here is my code:
const MySwal = withReactContent(Swal)
MySwal.fire({
title: 'Change Password?',
focusConfirm: true,
input: 'password',
inputPlaceholder: 'Enter your current password...',
html:
'<input id="newPassword1" type="password" placeholder="Enter your new password..." /><br />' +
'<input id="newPassword2" type="password" placeholder="Confirm your new password..." />' ,
type: 'warning',
showCancelButton: true,
cancelButtonColor: 'grey',
confirmButtonText: 'Update!',
allowOutsideClick: true,
inputValidator: (value) => {
if (!value) {
return 'You need to write something!'
}
}
})
Any ideas how I can do this?
