Result
fieldsPromise a jQuery promise instance, which can be used for callbacks, or passed to jQuery.when. The jQuery Deferred object resolves to:
done()- when user has pressed the "OK" button and the data passed to the callback is the inputted text;fail()- when user has pressed the "Cancel" button and the data passed to the callback is the inputted text.
result
Promise