How do I implement... a contact form using the module?

rl2rl2
edited October 2017 in Share
Okay, I am using the CMS interface to create a test contact form. I've added fields, populated a few fields like e-mail receipt, a test subject and message and saved the form.

However, how do I view the form? I assumed from the outset I would embed the form on an existing page - although the General tab suggests this is not the case so the 'slug' field contains the word 'contact'. So I go to http://localhost:3000/contact and I just get a 404 Page Not Found?

Comments

  • edited 7:22AM
    The slug value for the forms module doesn't directly relate to the page in which you view the form but the page in which it gets submitted to. To embed the form, you can use:
    <?=form('contact')?>
Sign In or Register to comment.