To add modal for form into library management system to insert new book

Hi there i am building Library Management AND i am creating modal to open form when to click on addbook button
But i want to insert these data into Book doctype so i want to fetch all these fields and show when i click on add book button so does anybody tell me how to do that
I want to make like this form

And this is my site

You can use client script for this.

i don’t think so i want to get all fields of book doctype and then want to show like above image fields when i click on addbutton button it show me this form and when i fill form and click on add book or submit it add this to book doctype and show me that book in list

Yes I got you, you can do this by using client script

ok thanks let me try this