I want to let users fill a form feedback about the node before downloading the file that attached to that node! like in Dialog or Popup, which modules should I use here?


Depending on your Drupal coding skills I would use a custom form with a modal using the OpenModalDialogCommand. In the modal you can attach a form with a textarea and a submit button. On clicking the submit button the feedback from the textarea gets stored, the modal gets closed (CloseModalDialogCommand) and a BinaryFileResponse gets returned.

I don't know of any contributed modules that provide this functionality.

P.S. I am assuming that you are using Drupal 8 here.

  • hello thank you so much for reply ! i4m not good in coding ! so will you please give more about this .... please
    – MohK
    Jun 28 '17 at 11:15
  • I will post back some sample code in a couple of hours provided that I was correct in assuming that you are using Drupal 8?
    – mvdgun
    Jun 28 '17 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.