Questions tagged [confirmation]
471 questions
287
votes
20 answers
In Bash, how to add "Are you sure [Y/n]" to any command or alias?
In this particular case, I'd like to add a confirm in Bash for
Are you sure? [Y/n]
for Mercurial's hg push ssh://username@www.example.com//somepath/morepath, which is actually an alias. Is there a standard command that can be added to the alias…

nonopolarity
- 146,324
- 131
- 460
- 740
139
votes
3 answers
How do I set up email confirmation with Devise?
Is there a tutorial out there that explains how to set up Devise's signup confirmation email from scratch (in both development and production), i.e. if you don't have Action Mailer set up?
Google searching has just turned up a bunch of separate…

jyli7
- 2,731
- 6
- 23
- 31
123
votes
9 answers
Easy way to make a confirmation dialog in Angular?
Is there any not-so-complicated way to make a confirm dialog in angular 2, the idea is to click on an item and then show a popup or modal to confirm its deletion, I tried angular 2 modals from here angular2-modal, but I don't know how to make that…

victor dencowski
- 1,398
- 2
- 12
- 12
122
votes
7 answers
Swift alert view with OK and Cancel: which button tapped?
I have an alert view in Xcode written in Swift and I'd like to determine which button the user selected (it is a confirmation dialog) to do nothing or to execute something.
Currently I have:
@IBAction func pushedRefresh(sender: AnyObject) {
var…

B_s
- 3,026
- 5
- 32
- 51
119
votes
3 answers
How to implement a confirmation (yes/no) DialogPreference?
How can I implement a Preference that displays a simple yes/no confirmation dialog?
For an example, see Browser->Setting->Clear Cache.

sh1ng
- 2,808
- 4
- 24
- 38
48
votes
5 answers
JFileChooser with confirmation dialog
I am working on a program that loads and saves data from text files, and I am asking the user a file name with JFileChooser on load and save.
This question is about the save dialog: new JFileChooser().showSaveDialog();. The user then could overwrite…

Roberto Luis Bisbé
- 2,080
- 1
- 15
- 22
47
votes
6 answers
How do I enable :confirmable in Devise?
The newest version of Devise doesn't have :confirmable enabled by default. I already added the respective columns to the User model but cannot find any code examples of how to enable :confirmable.
Where can I find a good example or what code do I…

Evan Machnic
- 637
- 1
- 6
- 8
30
votes
5 answers
Prevent Emacs from exiting once the exit procedure has initiated?
Is there a way to prevent Emacs from exiting once I initiate the exit process?
I occasionally fat finger C-xC-s as C-xC-c. It isn't an awful process to get back up and running but I am curious if there is a way I can stop the exit process so that I…

N Klosterman
- 1,231
- 14
- 23
29
votes
2 answers
How to check the delivery status of Firebase message sent to an Android application?
I am testing the Firebase JSON to check the delivery receipts of the notification sent to the news app. I can successfully send the message to the Android app without any issues and I receive the message on my Android app. However, I want to know…

support ecommunicate
- 301
- 1
- 3
- 4
27
votes
10 answers
Prevent a link, confirm and then goto location jquery
I have links like this.
Delete
If a user click on it. A confirmation should popup and then only if user click yes, it should goto the actual url.
I know that this can prevent the default behavior
…

esafwan
- 17,311
- 33
- 107
- 166
26
votes
5 answers
Twitter bootstrap - open modal over an already opened modal
Here's my scenario: I'm opening a modal window with some record details, and I've a "Delete" button. When user clicks on this button, I need to show a "confirmation" modal above/over the existing modal (asking "are you sure?"), but when this…

Rodrigo Pires
- 574
- 2
- 11
- 23
24
votes
4 answers
How to get user confirmation in fish shell?
I'm trying to gather user input in a fish shellscript, particularly of the following oft-seen form:
This command will delete some files. Proceed (y/N)?
After some searching around, I am still not sure how to do this cleanly.
Is these a special way…

user456584
- 86,427
- 15
- 75
- 107
23
votes
4 answers
javascript popup alert on link click
I need a javascript 'OK'/'Cancel' alert once I click on a link.
I have the alert code: