t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

How to use conditionally steps using queue? #830

Open segalzeyalz opened 6 years ago

segalzeyalz commented 6 years ago

Hi,

I would like to make a conditionally steps: The user has 2 option: one for id, one for a passport, after choosing - he should get a specific new swal, if he incorrect - get an error. If he click on the button - back to the validation relevant to him.

How should I make conditional queue moving?