Edit previously submitted information using Contour form
Hi,
I am new at
Umbraco Contour and I have been searching for a while now and have not found an
answer to my problem.
I have a
contour form which I use to submit some information. I have a custom workflow which
on submit, saves all my information in a database specified by me.
What I need
now is when a user wants to edit his/her profile, the form is already filled which
the data he/she had previously submitted. Allowing them to change what they
want without the need to fill out all the information again. I was trying a
custom workflow which would be called on
“When the form has been
Opened” but nothing
seems to happen when I preview the form. I have placed breakpoints to see if
the problem might be in the code but it doesen’t even stop. If I place my
workflow on “When the form has been
Submitted”, the
breakpoints are hit…
Any help
would be much appreciated.
Sergio
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Forms.Core;
using Umbraco.Forms.Data.Storage;
using Umbraco.Forms.Core.Attributes;
using Umbraco.Forms.Core.Enums;
using Umbraco.Framework.Security;
using System.Web.Security;
using Umbraco.Cms.Web;
using Umbraco.Cms.Web.Security;
namespace ContourV5.ExampleFieldType
{
public class LoadRegisterNewEntity : WorkflowType
{
[Setting("Something", description = "Something 1", control = "Umbraco.Forms.Core.FieldSetting.TextField")]
public string Group { get; set; }
public LoadRegisterNewEntity() {
this.Id = new Guid("4EF14103-2334-42F4-85D2-C426CA2811C8");
this.Name = "LoadRegisterNewEntity";
this.Description = "Executes an example workflowtype";
}
public override List<Exception> ValidateSettings() {
List<Exception> exceptions = new List<Exception>();
return exceptions;
}
public override Umbraco.Forms.Core.Enums.WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
{
WorkflowExecutionStatus ret = WorkflowExecutionStatus.Failed;
Edit previously submitted information using Contour form
Hi,
I am new at Umbraco Contour and I have been searching for a while now and have not found an answer to my problem.
I have a contour form which I use to submit some information. I have a custom workflow which on submit, saves all my information in a database specified by me.
What I need now is when a user wants to edit his/her profile, the form is already filled which the data he/she had previously submitted. Allowing them to change what they want without the need to fill out all the information again. I was trying a custom workflow which would be called on “When the form has been Opened” but nothing seems to happen when I preview the form. I have placed breakpoints to see if the problem might be in the code but it doesen’t even stop. If I place my workflow on “When the form has been Submitted”, the breakpoints are hit…
Any help would be much appreciated.
Sergio
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Forms.Core;
using Umbraco.Forms.Data.Storage;
using Umbraco.Forms.Core.Attributes;
using Umbraco.Forms.Core.Enums;
using Umbraco.Framework.Security;
using System.Web.Security;
using Umbraco.Cms.Web;
using Umbraco.Cms.Web.Security;
namespace ContourV5.ExampleFieldType
{
public class LoadRegisterNewEntity : WorkflowType
{
[Setting("Something", description = "Something 1", control = "Umbraco.Forms.Core.FieldSetting.TextField")]
public string Group { get; set; }
public LoadRegisterNewEntity() {
this.Id = new Guid("4EF14103-2334-42F4-85D2-C426CA2811C8");
this.Name = "LoadRegisterNewEntity";
this.Description = "Executes an example workflowtype";
}
public override List<Exception> ValidateSettings() {
List<Exception> exceptions = new List<Exception>();
return exceptions;
}
public override Umbraco.Forms.Core.Enums.WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
{
WorkflowExecutionStatus ret = WorkflowExecutionStatus.Failed;
switch (e.Form.Name) {
case "Edit Profile":
//Do something
break;
}
return ret;
}
}
}
is working on a reply...