Questions tagged as 'sweetalert2'

2
answers

Problem with sweetalert confirm link

Good morning, I am somewhat confused since I tried to make a confirmation modal before going to a link (basically before deleting an item from the DB, asking if it is safe) using sweetalert2 and I get several errors that I can not / I can sol...
asked by 13.12.2017 / 14:29
1
answer

Confirm button "delete" in CRUD

Good afternoon, I have a code that works with an id="confirm" so you have to confirm before deleting a record from a CRUD using datatables. The problem is that since it is a crud, it can not work with ID's since there would be several elem...
asked by 20.12.2017 / 20:31
1
answer

Sweet Alert on Modal Bootstrap

I have the following problem using sweet alert and modal bootstrap. It turns out, I make the requests through ajax and php, but the generated alert always shows me the independent success if the request to the server was successful or not. What...
asked by 05.11.2018 / 04:07
1
answer

Use SweetAlert2 to alter a class variable

I have a class that has a Boolean variable. This variable defines if a user receives a notification or not, but I want to use SweetAlert 2 to show the user an alert asking if he wants to receive the notification or not. The problem is that th...
asked by 18.07.2018 / 04:32
1
answer

SweetAlert: Unexpected 2nd argument

Good afternoon, I have the following code: function desactivar(idcategoria) { swal({ title: "Desactivar Categoría", text: "¿Está Seguro de desactivar la Categoría?", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55",...
asked by 05.10.2017 / 19:45
2
answers

Change of alert by sweet alert

if($resultado_pendientes>=1){ echo "alert(\"Usted posee 1 solicitud cerrada parcialmente por el departamento de sistemas, valide y cierrela antes de crear otra nueva.\"); document.location=(\"./listTicketUnrevi...
asked by 09.03.2018 / 13:25