Alert Box

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
May.AlFarsi
Posts: 9
Joined: Wed Jun 29, 2016

04 Feb 2018

I have added a hyperlink to my form and onclick function that prompts an alert box
and I was wondering if there is a way to customize the styles of the alert box and add some check boxes on it ??

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

05 Feb 2018

Dear May,
Alert window comes from JavaScript command alert(), read more about it here - https://www.w3schools.com/jsref/met_win_alert.asp
Instead, you can use prompt() method to ask user for input - https://www.w3schools.com/jsref/met_win_prompt.asp
Cheers

May.AlFarsi
Posts: 9
Joined: Wed Jun 29, 2016

21 Feb 2018

is it possible to capture the prompt input and populate it to a SP field Value

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

21 Feb 2018

Dear May,
Yes, of course. Try code like this:

Code: Select all

var title = prompt("Please enter Title");

if (title != null) {
    fd.field('Title').value(title);
}
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests