You can ask the user for a text value using
The simple usage is equivalent to the browser modal
Framework.AskForText("Current value", function (result) {
// Text entered by user, or null if the user cancelled.
});
Instead of simply supplying the pre-populated value for the text field, you can supply a full dialog definition in which you can set a
Framework.AskForText({
title: "Please enter your name",
heading: "What are you called?",
needValue: true, // User must enter a value, or else Save is disabled
text: "", // Text to prepopulate with
}, function (result) {
// Text entered by user, or null if the dialog is cancelled
});
In addition to standard dialog options, the full set of properties which you can provide is as follows:
| Property | Description |
| title | Title for the dialog |
| heading | Optional heading to display above the text field |
| needValue | If true, the Save button is disabled unless the user enters a value. Note: if you set |