SeemGen/Models/FormField.cs

19 lines
632 B
C#

namespace BLAIzor.Models
{
public class FormField
{
public string Label { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty; // text, number, date, textarea, radio, checkbox
public List<string>? Options { get; set; } = new();
public string? Section { get; set; }
}
public class FormFieldGroup
{
public string GroupName { get; set; } = string.Empty;
public bool Repeatable { get; set; } = false;
public List<FormField> Fields { get; set; } = new();
public int EntryCount { get; set; } = 1; // 👈 Default to 1
}
}