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 that'll convert a whole page of views into a modal form without any custom rendering.