Last active
June 20, 2017 20:33
-
-
Save davecra/baa3d59968edcceeafccfa2728bbc46e to your computer and use it in GitHub Desktop.
How to call an InputBox using officejs.dialogs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputBox.Reset(); | |
InputBox.Show("What value do you want to enter?", | |
"InputBox caption", | |
"Default value", function(result) { | |
var msg = ""; | |
if(result.length == 0) { | |
msg = "The user pressed cancel."; | |
} else { | |
msg = "The user entered: " + result; | |
} | |
console.log(msg); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment