Forum

Thread tagged as: Question, Blog, Forms

Take current blog post url on a contact form

Hi, every post on my blog has a contact form. Is there any way to get current "PostTitle" on my form results?

<perch:input type="hidden" id="postTitle" value="postTitle" />

thanks!

Raul Serrano

Raul Serrano 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that should work, if you pass it into the template with PerchSystem::set_var()