Create and Publish InfoPath for in SharePoint 2013
To create new InfoPath form we can select SharePoint list or we can create through blank Form. In this blog we will explain you how to create an InfoPath form with blank form. Open the InfoPath designer and select blank form as shown below:
After selecting blank form we can design it according to your requirement, there are lots of tool there in form at top ribbon where we can design our form using tables, controls, rules, formatting etc. We can see rules, formatting, and validations in below image.
We can set our own rules and design accordingly. See the preview below
We can also customize your form with code behind conditions, once we click on Code Editor a visual studio solution for this InfoPath will open and you can add custom code there. See below screen.
Now to publish InfoPath form by cling on File Menu and click on Publish our Form. This will save .xsn file on you public location and then we can deploy it on server.
Upload this .xsn file to central admin of our server and just activate. See below screen.