I would like to use Epiform as a download file form. A pdf file will be displayed after submission.
My question is, is it able to open the pdf file in a new window? Does it need to customize the form?
It sounds like you want a gated download following a form submission.
I recommend that you
Hi Marcus! Thanks for the tips!
I would like to something like this, when the visitor clicks the download button, a pdf will open in a new tab/window.
I will try to add the built-in episerver form visitor group criteria in code, I found this https://github.com/episerver/EPiServer.Forms.Samples/tree/master/Criteria.
Apologies, I misunderstood what you were trying to achieve.
If you simply want a download button, you could simply create a 'button' BlockType that has various properties for colour, text, etc.; that also contains a ContentReference property and a checkbox (boolean) for "Open in new window".
When you create a new button of that type, use the ContentReference property to point to the PDF, and in the view construct the button and link. If the "Open in new window" value on the block is true, then include the target="_blank" in the link.
You can also configure theis type of link in the RTE too if you need that.