diff --git a/Node/core/lib/dialogs/require-fields-dialog.js b/Node/core/lib/dialogs/require-fields-dialog.js index cd4ac8c..e4f86de 100644 --- a/Node/core/lib/dialogs/require-fields-dialog.js +++ b/Node/core/lib/dialogs/require-fields-dialog.js @@ -42,7 +42,7 @@ function createDialog() { return; } session.dialogData.lastInput = session.message.text; - session.dialogData.place[fields[index].name] = session.message.text; + session.dialogData.place.address[fields[index].name] = session.message.text; } index++; while (index < fields.length) { diff --git a/Node/core/src/dialogs/require-fields-dialog.ts b/Node/core/src/dialogs/require-fields-dialog.ts index 058a7d2..e253f3e 100644 --- a/Node/core/src/dialogs/require-fields-dialog.ts +++ b/Node/core/src/dialogs/require-fields-dialog.ts @@ -44,7 +44,7 @@ function createDialog() { } session.dialogData.lastInput = session.message.text; - session.dialogData.place[fields[index].name] = session.message.text; + session.dialogData.place.address[fields[index].name] = session.message.text; } index++; @@ -60,6 +60,7 @@ function createDialog() { session.dialogData.index = index; if (index >= fields.length) { + session.endDialogWithResult({ response: { place: session.dialogData.place } }); } else { session.sendBatch(); diff --git a/Node/sample/app.js b/Node/sample/app.js index 94ccd03..ba47ecb 100644 --- a/Node/sample/app.js +++ b/Node/sample/app.js @@ -27,6 +27,7 @@ bot.dialog("/", [ useNativeControl: true, reverseGeocode: true, skipFavorites: false, + skipConfirmationAsk: true, requiredFields: locationDialog.LocationRequiredFields.streetAddress | locationDialog.LocationRequiredFields.locality |