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.