We have a table with two URL link columns. We are using the || to separate the URL from the text. The columns are set to "Set the Link to appear as a button" the CSS is set to 'btn btn-primary'. This all works OK, shows buttons, links work. Where it goes wrong is if you edit an existing entry. Each time you make a change and OK the change it adds the button html again <button class="btn btn-primary"></button> So you end up with multiple buttons.
Can you please change the code so it checks if the <button> html is already there instead of blindly adding it each time?
I will forward your suggestion to our development team, of course.
In the meantime, when you're editing an existing row, simply delete the contents and edit the cell as if entering a new row, and the issue should be fixed.
We have a table with two URL link columns. We are using the || to separate the URL from the text. The columns are set to "Set the Link to appear as a button" the CSS is set to 'btn btn-primary'. This all works OK, shows buttons, links work. Where it goes wrong is if you edit an existing entry. Each time you make a change and OK the change it adds the button html again <button class="btn btn-primary"></button> So you end up with multiple buttons.
Can you please change the code so it checks if the <button> html is already there instead of blindly adding it each time?
Hello Colin
Thank you for your purchase.
I will forward your suggestion to our development team, of course.
In the meantime, when you're editing an existing row, simply delete the contents and edit the cell as if entering a new row, and the issue should be fixed.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables