Registration form, including page title in submission
I'm a complete beginner, so please bear with me, I'm sure this a very simple thing, but I'm confused.
I have a working registration form I'm trying to edit, when its submitted I need the submitted data to include the page title which is in a hidden field called title (There are multiple registration forms, using the same template)
I want to use the data in the below (titleInterval)
var titleInterval = interval.GetValue("title");
In the data submission to a registration tracking system, the tracking system, will use this to isolate which list to include this entry on.
is on the actual partial views .cshtml page in question, which uses the "register" template, would this cause an error like this? If so how do I go about correcting it?
Registration form, including page title in submission
I'm a complete beginner, so please bear with me, I'm sure this a very simple thing, but I'm confused.
I have a working registration form I'm trying to edit, when its submitted I need the submitted data to include the page title which is in a hidden field called title (There are multiple registration forms, using the same template)
I want to use the data in the below (titleInterval)
In the data submission to a registration tracking system, the tracking system, will use this to isolate which list to include this entry on.
This is whats in the form already;
Before the submit line I want to add the data for the titleInterval variable above. Is it as simple as adding;
Hi Conor,
Is this in a regular Razor Template or Partial View?
Then you should be able to do this:
/Chriztian
Update: sorry: Its partial view.
Thank you. I appreciate the help.
ok, so I'm getting an error, that "The name titleInterval does not exist in this context"
So the line:
Is on the template (called "register") where as the line
is on the actual partial views .cshtml page in question, which uses the "register" template, would this cause an error like this? If so how do I go about correcting it?
is working on a reply...