I have a custom label that i would like to display making use of the conditional logic in contour.
In addittion i created a custom textField as well, and depending if any value is enter in the textField i would like to display the Label.
Here is the code for the labelling.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Umbraco.Forms.Core; using Umbraco.Forms.CodeFirst; using Umbraco.Forms.Core.Controls; using System.Web.UI.WebControls; using Umbraco.Forms.Data;
namespace SCTextField { public class DCLabel : FieldType { [Umbraco.Forms.Core.Attributes.Setting("Allocation ", description = "Enter the text to show in the label", control = "Umbraco.Forms.Core.FieldSetting.TextField")] public string LabelToShow { get; set; }
public System.Web.UI.WebControls.TextBox lblBox; public List<Object> Value;
public DCLabel(){ //Provider this.Id = new Guid("2c9be796-5fe0-4fa6-8896-4f73c0c55a73"); this.Name = "Label Allocation Text Field"; this.Description = "A Read Only Field use to display Allocation ";
Custom Label
I have a custom label that i would like to display making use of the conditional logic in contour.
In addittion i created a custom textField as well, and depending if any value is enter in the textField i would like to display the Label.
Here is the code for the labelling.
Can someone point out what is wrong here ?
Looks like even my submit is not working. I get an error when submitting the form "Input string was not in a correct format."
Comment author was deleted
Mind sending the code then I can test, don't spot what is wrong, and copy /pasting from the forum isn't that easy ;)
Can you send me your email add ?
Comment author was deleted
yeah just use tg at umbraco dot com and I'll take a look
is working on a reply...