Skip to content

Instantly share code, notes, and snippets.

@davecra
Last active June 20, 2017 20:33
Show Gist options
  • Save davecra/baa3d59968edcceeafccfa2728bbc46e to your computer and use it in GitHub Desktop.
Save davecra/baa3d59968edcceeafccfa2728bbc46e to your computer and use it in GitHub Desktop.
How to call an InputBox using officejs.dialogs
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