PopUp Windo when I press the save button

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
TWendt
Posts: 109
Joined: Mon Sep 08, 2014

27 Feb 2020

Hi all,

it is possible that you give me an example for a PopUp window if the user press the save button.

I need a message "Are you sure?" before the item is saved.

Best wishes
Tom

Leslie
Posts: 32
Joined: Thu Dec 05, 2019

28 Feb 2020

Hi !

Try this code in your JS :

fd.onsubmit(function () {
alert('Are you sure?');
return true;
});

But the alert box have only one button : "OK".
So the user doesn't have a real choice. :P

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

02 Mar 2020

Hello TWendt,

You can use the confirm box, e.g.:

Code: Select all

fd.onsubmit(function () {
var confirmAction = confirm('Are you sure?');
if(confirmAction == true) {
return true;
}
else{
	return false;
}
});

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests