AI OnAI Off
Let your custom form element implement the interface IExcludeInSubmission.
I created an email validation element which implemented the TextboxElementBlock base. The view has two required input boxes, which are validated using JQuery when the form is submitted. But because the element implements the textbox element, only a single element is stored to the database. In the view, I use the "data-f-element-name" property of the wrapper div to specify which field value is written to the database.
ash, you write that you have created a custom EmailConfirmation field. If you have created that in code, it could look something like this:
[ContentType(
DisplayName = "Emailconfirmation",
GroupName = "Form Elements")]
public class EmailconfirmationElementBlock : TextboxElementBlock
{
...
}
Just add IExcludeInSubmission, like this:
[ContentType(
DisplayName = "Emailconfirmation",
GroupName = "Form Elements")]
public class EmailconfirmationElementBlock : TextboxElementBlock, IExcludeInSubmission
{
...
}
Hi,
I am using form elments to create form and i create a custom control(EmailConfirmation field) to validate email field, but now EmailConfirmation field value is also storing in my cms. I don't want to store that value.