I've a form with few fields and submit button. When user click on Submit button, I do some processing and after which I want to open a confirmation form in ModalDialog with some customised message (dynamic) and "Proceed" & "Cancel" button. If user click on Proceed button, user will be taken to next page and if click on Cancel, the modal will be closed.

I've checked this question and D.O. Issue for Core Workflow Module, but these are for opening's Modal using link and not on form submit.

  • 1
    use ajax in form submit when submit open modal window
    – code.rider
    Commented Nov 16, 2017 at 11:04
  • 1
    I'm already using ajax submit, but the problem is modal open messages, not form. I've also tried rendering form content and passing, but in that case my form submit is misbehaving.
    – Yogesh
    Commented Nov 16, 2017 at 16:41
  • 1
    Found that similar work is inprogress in Drupal Core 8.7.x
    – Yogesh
    Commented Nov 17, 2018 at 13:48


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.