I'm writing a SharePoint app using the JavaScript Object Model. It uses some customized lists--an events list(calendar) and a contacts list with some customized fields that aren't in the default versions of these lists.
I'm trying to figure out if it is possible for my app to modify the default forms for creating new items in these lists, when it creates the lists.
For example, I like how Microsoft's default forms look but would prefer to hide some of the form controls that aren't relevant to my application:
I don't need the category, all day event, recurrence, requester, supervisor, or approved fields to be user-editable--the program takes care of that--so I'd rather not have them shown.
When I looked in the NewForm.aspx file, I couldn't find the code that created the controls so I'm not even sure what to edit. Secondly since I'm creating the lists via Javascript, I'm going to need to edit the ddisp/edit/new forms in javascript when I create them. i don't even know where to start here.
Is what I'm doing even possible? Or maybe I should be approaching it differently?