Questions tagged [confirm-dialog]
33 questions
49
votes
9 answers
ngx-bootstrap modal: How to get a return value from a modal?
In my Angular 4 app, let's assume that I'm inside a service.
At some point, I want to ask the user for a confirmation, currently I'm doing it with just a confirm(...) request:
const result = confirm('Are you sure?');
What if instead I would like to…

Francesco Borzi
- 56,083
- 47
- 179
- 252
20
votes
9 answers
Angular use modal dialog in canDeactivate Guard service for unsubmitted changes (Form dirty)
In my Angular 4 application I have some components with a form, like this:
export class MyComponent implements OnInit, FormComponent {
form: FormGroup;
ngOnInit() {
this.form = new FormGroup({...});
}
they use a Guard service to prevent…

Francesco Borzi
- 56,083
- 47
- 179
- 252
15
votes
4 answers
Confirm dialog box in angularjs
How can I apply confirm dialog box in below button in angularjs ?
Just like this.

Believe It or Not
- 631
- 2
- 8
- 21
8
votes
7 answers
JQuery confirmation dialog
I am looking for an way to implement a reusable "confirm" Dialog with JQuery..
This is the part from the MyApp Class to open the dialog:
/**
* @param text string Message to display
*/
getConfirmationDialog: function(text) {
MyApp.confirmDialog…

opHASnoNAME
- 20,224
- 26
- 98
- 143
4
votes
1 answer
How do I style the confirmation buttons within primeng's ConfirmDialog modal?
I'm confused on how to go about styling the 2 'confirm' and 'cancel' buttons within Angular's primeng library when using the ConfirmDialog.
ref: https://www.primefaces.org/primeng/#/confirmdialog
I'd like to make the 'confirm' button remain green,…

Roger Sterling
- 43
- 1
- 5
2
votes
1 answer
Primeface confirmDialog accesibility
The confirmation dialogues are not accessible to my screenreader (Orca 3.22.2).
The reader only reads the header but not the message of the dialog. Since the focus is set on the first button by default (which is after the text most of the time) it…

Leah
- 43
- 6
2
votes
1 answer
How to display a confirm dialog in JSF?
When I first upload a file in the database and later if user uploads the same file I want to show user a confirm dialog saying "Do you want to override? Yes or No". How should I achieve this?

Kunal Jamdade
- 39
- 3
- 8
1
vote
0 answers
PrimeNG ConfirmDialog not popping up after version change
Confirm Dialog is not centered after version change to 9.1.3.
If I place confirmDialog tag on top of the HTML page, it displays at the top and move other components. If I place it at the bottom of the HTML page then it displays at the bottom of the…

Jan69
- 1,109
- 5
- 25
- 48
1
vote
1 answer
How can I have a confirmation dialog with title that returns true/false on "OK" and "Cancel" events?
I have created a confirmation box that works as expected and return true/false on the button click. But it is a general confirm where I cannot set a custom title.
function Validate() {
if ($('#cphBody_gvBins').find("input[value='Edit']").length…

gene
- 2,098
- 7
- 40
- 98
1
vote
2 answers
How to add a new line in Yii2 Data Confirm
I have a button using the following code in my view...
= Html::submitButton('Delete Summary', [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Really long message.Line 2Line 3?',
…

Shahid Thaika
- 2,133
- 5
- 23
- 59
1
vote
0 answers
Show p:confirm dialog only when validation is success
So, basically I just want to add validation before confirmation dialog popout, but the problem is when I add between command button the validation error didn't popout before confirm dialog even with if (!args.validationFailed)…

Agus Tinus
- 41
- 6
1
vote
1 answer
Confirm dialog loses focus on iOS10
In the mobile version of my web site I have a JavaScript confirm dialog that appears under specific circumstances. Using setTimeout I trigger the confirm dialog.
No matter which tab the user is in, he should see the confirm dialog but in iOS 10…

AlexCode
- 655
- 5
- 18
1
vote
2 answers
XSS vulrenability in
Summary: The attribute does not escape HTML, hereby opening a potential XSS attack hole. How can I solve it?
Original question below (original title was: XSS Attacks : How to prevent Script injection in Response of…

vinod
- 1,178
- 4
- 16
- 42
0
votes
1 answer
Primeng ConfirmDialog 'Yes' button is pre-selected
My p-confirmDialog has the pre-selected 'Yes' button by default.. I have no idea why. Additionally, I wonder how to customize the default buttons in any PrimeNg dialogs.
Can you please help me out?
Here is my code:
…

JBC
- 33
- 5
0
votes
1 answer
is it possible to have a table embedded in message of dash dcc.confirmdialog?
Trying to see if I can enhance the confirmdialog pop up message window by passing not only string but maybe a dash table with a few records and option to collapse it for user. Is that…

Mth Clv
- 625
- 1
- 7
- 20