K2 SmartForms are customizable forms used in K2 applications to create New items, or Display and Edit existing items in the SharePoint List/Library. Default SharePoint list forms can be replaced with K2 SmartForms which can be easily customized to suit the requirements. Please refer my previous blog for creating SmartForms.
Item Views work with a single record of a SmartObject and are bound to the scalar methods of the SmartObject. Item Views can be used to display data (read-only) or capture data for either a new record or editing an existing record. Views are used to design a Form. Please refer my previous blog to create Item View using K2 Designer.
I have a custom list named “K2 Workflow Tutorials” in which I have created an Item View. We will see how to generate a form from item view using K2 Designer for “K2 Workflow Tutorials” list.
Navigate to the custom list. Click on List tab and then click on Application button under K2 section in the ribbon interface. Click on New and then click on View. Navigate to the item view for which we have to generate a form in the K2 Designer. Click on Generate a Form.
Enter the Form Name and then click on Ok button.
Form will be successfully generated and check in the form (Right click on the form and then click on Check In) in the K2 Application page. Click on Form Settings in the K2 Application Page. Select “My Sample Item View Form” for new item and then click on Save button.
Navigate to “K2 Workflow Tutorials” list and then click on new item. K2 form will be opened.