Custom forms renderer

I want to convert my form modal, for that I need to perform custom rendering forms. How to carry it out? Then, show the form to the user.

Check this article here http://helpdesk.knackhq.com/support/solutions/articles/5000442746-working-with-pages#modal that'll convert a whole page of views into a modal form without any custom rendering.