button in the view that updates the form

By: Matheus Nascimento | Asked: 01/15/2024
ForumsCategory: General questionsbutton in the view that updates the form
Matheus Nascimento asked 9 months ago
Guys, how are you? I have a form that registers some names and I needed to inactivate some names, that is, I don't remove this entry from my database but it stops appearing to the user, but I would like to place just one button in the view that when the user clicks it already inactivated that specific entry, can anyone help me with this?
3 Answers
Rob LeVineRob LeVine answered 9 months ago
There is nothing native to FF to help you with that. You'll have to use jQuery & PHP custom coding. You'll set up a button in the view & create a click listener in jQuery. When the button is clicked you make an Ajax call to a PHP program to update the entry and then return to the jQuery and update the UI.
Matheus Nascimento answered 9 months ago
TKS
Matheus Nascimento answered 9 months ago
TKS

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