Kartik Dialog prompt multiple input fields

I’ve read the documentation and there’s a button wherein the dialog shows a form (multiple fields)

I would like to know how to make it and how to process the form once the dialog is submitted.

For now, all I have is a basic dialog that can be called by pressing a button.

<?= Dialog::widget(
 'dialogDefaults' => [
  Dialog::DIALOG_PROMPT => [
   'type' => Dialog::TYPE_INFO
  ]
 ]
); ?>

$this->registerJs('
  $(".btn-trigger-dialog").on("click", function(){
   krajeeDialog.prompt(
    {
     label: "Provide remarks"
    }, function(result) {
     // Some conditions once the dialog is submitted.
    }
   )
  })
');

Thanks.

Hi,
you could bind a click event to submit your form

Ex.

$('#your confirm button').on('click', function(e) 
{
    e.preventDefault();
    let form = $("#yourform");
    form.yiiActiveForm('submitForm');
}
//Other Logic.......

How can I create the form inside the Dialog widget?