Datatables installation

By: Victoria Dinneen | Asked: 12/12/2022
ForumsCategory: Code HelpDatatables installation
Victoria Dinneen asked 2 years ago
Hi! I'm quite confused. I am trying to use https://datatables.net/manual/installation because I need to sort a table with the "math" function. I tried following the steps to set it up shared on the link above, although it appears there are a few things missing. I tried both the CDN and Local options. I also tried various itterations of them since it seemed like there were a few oddities, like
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.css">

sometimes having a / after the .css .

I also tried following the steps here: https://www.fdmdigital.co.uk/formidable-forms-jquery-datatables/ but regardless of my many attempts, nothing changes on the table. I'm not a developer and must be missing something fundamental, but I don't know what.

Any suggestions would be very much appreciated. I don't have the page public because I can't get it to display correctly.
Bobby Clapp replied 2 years ago

Walter Jones put together some scripts to simplify the process: https://joneswebdesigns.com/datatables/ (small fee)

Victoria Dinneen replied 2 years ago

Thank you!

1 Answers
Asheley Bailey answered 2 years ago
Hey Victoria,   Not sure if you solved this but if you're using the steps in the link below, the issue is probably the unique table id. This is not the id number from formidable. This is an id listed within the <table> tag. This is something you have to add to the HTML. The only way I've figured out to add it is to switch to classic view > head to the before contact section > then in the <table> tag add an id="whatever you want the id to be". You will then add that id with a '#' in front of it to the jQuery script in the after content section.     https://www.fdmdigital.co.uk/formidable-forms-jquery-datatables/ 

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right