3

I want to create a registration form in my website like Name, email and comments.

Once the end user filled the details, I would like to allow him to download a PDF.

Could any one please let me know how can I achieve it in Craft CMS.

Thanks in advance.

2

I would suggest that you us the Craft Member Registration form and have them register as actual Craft members.

Once they're members and logged in, you can display elements of a page using something like:

{% if currentUser %}
    Download this PDF...
{% endif %}

More info on the above, here: How can I determine if a user is logged in, and who that user is?

An obvious benefit to the above is that a member would only need to log in once and gain access to relevant content, instead of being asked to submit the information each time.

Let us know how you get on.

2
  • 1
    Thanks Matt for quick turn around time. How can I use this registration form and where. I completely new to this CMS
    – Prasanna
    Jun 7 '16 at 15:38
  • 1
    @Prasanna I'd start by reading the Craft documentation (craftcms.com/docs) to get an overview of Craft specific concepts and for things like templating, which is what your'e looking for craftcms.com/docs/templating
    – Brad Bell
    Jun 7 '16 at 16:59

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.