Yes, you can achieve the desired outcome without using the "prompt" method within the $mdDialog service. Instead, you can utilize the $mdDialog.show() function and provide an object with a 'templateUrl' property that links to a custom HTML template file.
Here's an example:
$scope.showAdvanced = function(ev) {
$mdDialog.show({
controller: DialogController,
templateUrl: 'dialog1.tmpl.html',
parent: angular.element(document.body),
targetEvent: ev,
clickOutsideToClose:true,
fullscreen: $scope.customFullscreen // Only for -xs, -sm breakpoints.
})
.then(function(answer) {
$scope.status = 'You said the information was "' + answer + '".';
}, function() {
$scope.status = 'You cancelled the dialog.';
});
};
In the specified HTML template file ('dialog1.tmpl.html'), you have the flexibility to add multiple input fields as needed. These inputs can be easily managed through the associated controller by writing custom code specific to your requirements.