Alert Box
-
- Posts: 9
- Joined: Wed Jun 29, 2016
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 ??
and I was wondering if there is a way to customize the styles of the alert box and add some check boxes on it ??
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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
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
-
- Posts: 9
- Joined: Wed Jun 29, 2016
is it possible to capture the prompt input and populate it to a SP field Value
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear May,
Yes, of course. Try code like this:
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests