Showing value from all the fields in the web view

Hello, i want to show the values from all of the fields of a doctype in the web view of that corresponding doctype. Suppose, i have three fields as -


Now, in the web view, i can see only


I want to see all of them. How can i do that?

Hi @ni8mr,

Create new html file doctype_row.html in template/include directory. Then you can add the html code to display the book_id, book_name, book_author in single row.

e.g. If you have doctype Book then create book_row.html in template/includes directory of your app

Please refer erpnext/issue_row.html at develop · frappe/erpnext · GitHub for the list view.

Makarand Bauskar


Thank you very much. :smile:

Just one question though, should i write an html file similar to erpnext/issue_row.html at develop · frappe/erpnext · GitHub or should i write a totally new one?

Yes you will need to create new file

Hello, sorry for knocking late. I have not been thinking about this issue, today i have tried to approach it with this code -

<div class="web-list-item">
    <div class="row">
	<div class="col-xs-8">
             <p>{{ doc.book_id }}</p>
             <p>{{ doc.book_name }}</p>
             <p>{{ doc.book_author }}</p>

Still, haven’t got the desired view. Is my approach correct?

The name of the file is book_row.html (assuming the doctype is Book)

Plus, i have another question in regards of this,

Does the html pages resides in the include folder automatically added in the view or i have to call them from somewhere? Overall, i am confused about the workflow of the view.

Do i have to call the .html file from somewhere?