Anyone please help me to create the dynamic form using MVC4 razor and sql server as per the Admin.
Means for each project Admin will create the form like control (textbox,dropdown,label etc) and all set the layout and alignments for the same so that when normal user open as per his rights to the project he/she will see the form which have been configured for him.
I have made the enum like public enum dataFieldType
{
TextBox = 0,
TextArea = 1,
DropDown = 2,
CheckBox = 3,
Label = 4
}
and database fields like
CREATE TABLE [dbo].[pr_tblFields](
[id] [int] IDENTITY(1,1) NOT NULL,
[pid] [int] NULL,
[Name] [nvarchar](250) NULL,
[Type] [nvarchar](50) NULL,
[Required] [bit] NULL,
[choices] [nvarchar](max) NULL,
[ordinal] [int] NULL,
[Datecreated] [datetime] NULL,
[Datemodified] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
i don't know how to go through.Urgent for my projec