A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
We have a "Comment about this page" link on the bottom of every page that opens a form that our constituents use to make comments about whatever pages they are viewing. The form emails our web authors with a page link and the message. I need to reproduce this functionality in EPiServer.
I hope I’m going about this the right way.
I’ve created a block controller called CommentAboutFormController with Name, Email and Message, and am calling this block as a property in SitePageData, since the form needs to be on every page.
I created a SubmitComment action result in my default page controller which I'd like to use to send an email out to our web authors. Right now I’m just debugging to see if I can get form data to pull through. The form data should be in currentPage.CommentAbout, but it is null
This is the form
When I hit submit, I can get the page data to pull through just fine, but the CommentAbout block is always coming though as Null.
Does anyone have any suggestions as to how I can get this form data to pull through? Or perhaps a better way for me to accomplish getting this form on every page?