[Resolved] Update Custom Field via a Link on the View
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user wanted to update a single custom field with the click of a link.
Solution:
While it is not possible to click a link to update a custom field. It is possible to create a link to update a post using a Toolset Form. To do this please have a look at the link below.
Tell us what you are trying to do?
>> I am displaying records for a Custom Post Type in a View on a Page. One of the Columns of the View (Table Grid) I have is called "Actions". This had a link to Edit the Record, but now I also want a link that says "Approve" which I want to do one of the two following:
1) If the user clicks on Approve, the system should update a Custom Field (Date field) to today's date of the Custom Post Type.
2) Or Open a Modal with the Date field and let the user select a date and update the Custom Field (date field) of the Custom Post type.
Is there any documentation that you are following?
>> Not really. I searched but haven't found a similar request.
Is there a similar example that we can see?
>> Not really.
What is the link to your site?
Lop.peoplefirstpharmacy.com
Unfortunately no this is not possible to do with our plugins only. In order to change a value of a custom field it must either be edited on the backend or done using a frontend form.
You should also be able to achieve this by writing a custom script that is able to update that single field when the link is clicked, however such custom coding is out of the scope of our support forum.
Hi Shane, thanks for the update. Is it possible to launch the frontend form (with just one field) in a modal/popup? Have you seen something similar requested and any solution was provided if so?
I've seen where customers use the bootstrap modal for a login form popup, you are welcomed to try using the bootstrap modal but I can't guarantee that it will work.