I have created 'myUI.aspx' file @ /_layouts/myproject/myUI.aspx. This application page(aka LayoutPageBase) is used as a dialog across the farm just for creating new items in my list. As such I would also like to set it as the template for adding list items.
My custom list has a schema defenition where at the bottom I find
<Forms>
<Form Type='DisplayForm' Url='DisplayForm.aspx' SetupPath='pages\form.aspx' WebPartZoneID='Main' />
<Form Type='EditForm' Url='EditForm.aspx' SetupPath='pages\form.aspx' WebPartZoneID='Main' />
<Form Type='NewForm' Url='NewForm.aspx' SetupPath='pages\form.aspx' WebPartZoneID='Main' />
</Forms>
Both the List definition & the layout file are in the same solution.
I have tried changing NewForm to each of the below:
<Form Type='NewForm' Url='NewForm.aspx' SetupPath='_layouts\myproject\myUI.aspx' WebPartZoneID='Main' />
<Form Type='NewForm' Url='NewForm.aspx' Path='_layouts\myproject\myUI.aspx' WebPartZoneID='Main' />
<Form Type='NewForm' Url='NewForm.aspx' Path='layouts\myproject\myUI.aspx' WebPartZoneID='Main' />
Is there a way to do this or am I using the wrong kind of .aspx file?
<Form Type='NewForm' Url='_layouts\myproject\myUI.aspx'
– Amal Hashim Nov 21 '14 at 16:18