Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
protected void override OnInit(EventArgs ea)
{
if( myXFormControl.Data.HasAlreadyPosted( this ))
{
// switch to statistics view
}
}
Regards,
Johan Olofsson
EPiServer AB
override protected void OnInit(EventArgs e)
{
PropertyXForm form = XFormProperty.InnerProperty as PropertyXForm;
if (form.XFormControl.Data.HasAlreadyPosted(this.Page))
EPiServer.Core.PropertyXForm propXForm = XFormProperty.InnerProperty as EPiServer.Core.PropertyXForm;
EPiServer.XForms.XFormData formData = propXForm.Form.CreateFormData();
formData.ChannelOptions = EPiServer.XForms.ChannelOptions.Database;
if(formData.HasAlreadyPosted( this.Page ))
{
Response.Write( "already voted" );
}
Regards,
Johan Olofsson
EPiServer AB