I have a form:
var frmB = [
{type: "fieldset", name:"requestor_information", label:"Requestor Information", width: 800, list:[
{ type: "input", label: "EUID:", name: "requestor_euid", inputWidth: "50", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "block", list: [
{ type: "input", label: "First name:", name: "requestor_fname", inputWidth: "200", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "newcolumn", offset: 30 },
{ type: "input", label: "Last name:", name: "requestor_lname", inputWidth: "200", position: "label-left", labelAlign: "right", readonly: true, value: "test me" }
]},
{ type: "input", label: "Title:", name: "requestor_title", inputWidth: "300", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "input", label: "Department:", name: "requestor_dept", inputWidth: "300", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "input", label: "Office:", name: "requestor_office", inputWidth: "300", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "block", list: [
{ type: "input", label: "Phone number:", name: "requestor_phone", inputWidth: "200", position: "label-left", labelAlign: "right", readonly: true, value: "test me" },
{ type: "newcolumn", offset: 30 },
{ type: "input", label: "Fax number:", name: "requestor_fax", inputWidth: "200", position: "label-left", labelAlign: "right", readonly: true, value: "test me" }
]},
{ type: "input", label: "Email:", name: "requestor_email", inputWidth: "300", position: "label-left", labelAlign: "right", readonly: true, value: "test me" }
]}
];
That is being created using JSON notation and it works fine. It is attached to a 2U Layout. I would like to add a grid to the form below the JSON form elements in the same layout cell is there a way to do this? I looked at the sample that uses a pre-existing HTML form and an imbedded DIV for the grid, but I want to be able to use a JSON form.
I’ve tried to create the grid independently and then attachObject to the cell (failed), I’ve tried creating a dummy form item and attaching the grid to it by changing the grid’s parent item (failed). I’m hoping I’m missing the obvious solution.
What I’m trying to create is a form that will allow users the ability to list items (add/remove from a table/grid) as part of a form.
Any insight would be appreciated. Thanks.