I need to create a workflow for the 1st step in a 2 step form. I have the following code which sets a cookie. If i add this workflow to the "When the form has been Submitted" it fires and the cookie is set when the final step is carried out. However if I add exactly the same workflow to "When the form has been PartiallySubmitted" it does not fire when the first step is submitted. Am i doing something wrong?
Thanks
Dan
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Xml; using System.Xml.XPath; using System.Web;
using Umbraco.Forms.Core; using Umbraco.Forms.Core.Enums; using Umbraco.Forms.Data.Storage;
namespace FFDisclaimer { public class SetCookie : Umbraco.Forms.Core.WorkflowType { [Umbraco.Forms.Core.Attributes.Setting("ExpiryDate", description = "Enter length of the cookie in days", control = "Umbraco.Forms.Core.FieldSetting.TextField")] public string ExpiryDate { get; set; }
public SetCookie() { this.Id = new Guid("0a9b6f85-3f24-4f46-b738-0a9984784d6b"); this.Name = "Set cookie to show form submitted"; this.Description = "Sets a cookie to show the user has completed the disclaimer and can visit the site"; }
public override List<Exception> ValidateSettings() { List<Exception> l = new List<Exception>(); if (string.IsNullOrEmpty(ExpiryDate)) l.Add(new Exception("'ExpiryDate' setting not filled out'")); return l; }
public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e) {
RecordPartiallySubmitted not being triggered
I need to create a workflow for the 1st step in a 2 step form. I have the following code which sets a cookie. If i add this workflow to the "When the form has been Submitted" it fires and the cookie is set when the final step is carried out. However if I add exactly the same workflow to "When the form has been PartiallySubmitted" it does not fire when the first step is submitted. Am i doing something wrong?
Thanks
Dan
Comment author was deleted
Hi Dan,
Looks like you discovered a bug. Will add this to our bug tracker and we'll sort this out with the next maintenance release.
Does that mean that the PartiallySubmitted event is NEVER fired at the moment? Or are there specific circumstances that cause to fire or not fire?
Thanks
Dan
Hi Tim
Any idea when this bug will be fixed and a patched version released?
Thanks
Dan
Comment author was deleted
Looking into the issue today, new maintenance release following today or monday
Comment author was deleted
Fixed the problem, should have the new maintenance release ready on monday (including several other fixes).
Hi Tim,
Where can i find version 1.0.8? The package repository is still showing 1.0.7.
Thanks
Dan
is working on a reply...