Okay
  Public Ticket #1467738
Combine DataTable with Fileinput on one page
Closed

Comments

  • chellisa started the conversation

    Hi, 

    I tried to make a page with a datatable as well a form with a replaced file input field (file2), but as soon as I include assets/js/datatables/datatables.js for example on the original form-files-upload.html page the script breaks and no upload button is shown. 

    Console says: TypeError: $this.bootstrapFileInput is not a function.
    Can you help?

    Thanks in advance!

    Vera

  • [deleted] replied

    Hi Vera,

    On DataTables page I saw that these scripts are necessary to include:

    <link rel="stylesheet" href="assets/js/datatables/datatables.css">
    <link rel="stylesheet" href="assets/js/select2/select2-bootstrap.css">
    <link rel="stylesheet" href="assets/js/select2/select2.css">
    <script src="assets/js/bootstrap.js"></script>
    <script src="assets/js/datatables/datatables.js"></script>
    <script src="assets/js/select2/select2.min.js"></script>
    <script src="assets/js/fileinput.js"></script>

    Are you importing these scripts? 

    Please note that the ordering is important and neon-custom.js:

    <script src="assets/js/neon-custom.js"></script>
    
    Should be loaded in the very end.