Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    Create Datalist in Odoo

    In this tutorial, I am going to show how we can create a <datalist> with dynamic data.  I will show this with reference to Odoo. We will see how we can add dynamic data in the <datalist> in Odoo.
    The HTML <datalist> tag is used to provide an auto-complete feature on HTML elements. It provides a list of predefined options to the users to select data.  It can be used with <input> tag so that users can easily fill the data in the forms using select the data. The <datalist> tag should be used with an <input> element that contains a “list” attribute. The value of “list” attribute is linked with the “id” of the <datalist>.

    First, let us consider  how a <datalist> can be created with static data in simple HTML.



    Now we will consider an example in Odoo. We will consider that we are having a list of Orderlines and we will display the data of the Orderlines in the options of the <datalist>.

    That is it.!!!
    If you liked this post, It would be very grateful if you write your opinions, comments and suggestions to keep the post updated and interesting.
    Thank you!

    . . .


    Add Your Comment

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again