ByNary010101
Programmer
I am building a customizable Work Order screen for a local company. They want to have the ability to create a new Work Order type (i.e. Desktop Install, Laptop Install, Printer Install, etc.) and then they want to define the criteria that the form should display when a Manager or a Technician goes to fill out a new Work Order of this type. For Example:
Page will display: "New Work Order Name:" user will input, for example, "Desktop Install"
Below this there will be:
"Criteria:" user will input the Criteria description, for example, "Multi User Id"
Next to this will be a drop down list populated with different HTML tags asking how the input should be collected from the user "Input Type: Text, Dropdown, Multiline Text"
If the user selects Input Type of Dropdown, he/she is presented with a way for him/her to enter in all the options that should be inlcuded in the dropdown for this criteria (ex. Yes, No, Maybe)
After the user inputs all his/her criteria he/she clicks an "Add Item" button and it adds this info to something (not sure yet what I want to add it to) and then can proceed to enter all other criteria requirements for the Install Type.
I need advice on how I should store the HTML tags and attributes in the Database. I have been toying with doing something like this in my Field table:
Field_Id: 1
Field_Desc: IP Address
Field_Html: <input type="text" name="IPAddress" id="IPAddress" />
What would be the best way to store a Select tag (dropdown) with all of its options with a way that would allow the Work Order creator to go back and add, remove, and edit the options?? I hope this makes sense. Thanks.
Page will display: "New Work Order Name:" user will input, for example, "Desktop Install"
Below this there will be:
"Criteria:" user will input the Criteria description, for example, "Multi User Id"
Next to this will be a drop down list populated with different HTML tags asking how the input should be collected from the user "Input Type: Text, Dropdown, Multiline Text"
If the user selects Input Type of Dropdown, he/she is presented with a way for him/her to enter in all the options that should be inlcuded in the dropdown for this criteria (ex. Yes, No, Maybe)
After the user inputs all his/her criteria he/she clicks an "Add Item" button and it adds this info to something (not sure yet what I want to add it to) and then can proceed to enter all other criteria requirements for the Install Type.
I need advice on how I should store the HTML tags and attributes in the Database. I have been toying with doing something like this in my Field table:
Field_Id: 1
Field_Desc: IP Address
Field_Html: <input type="text" name="IPAddress" id="IPAddress" />
What would be the best way to store a Select tag (dropdown) with all of its options with a way that would allow the Work Order creator to go back and add, remove, and edit the options?? I hope this makes sense. Thanks.