Skip Navigation

[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.

https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/building-forms-for-editing-when-using-layouts/

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Mukesh 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1130019

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

#1130188

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

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.

Thanks,
Shane

#1130742

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?

Thanks
Mukesh

#1130780

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mukesh,

Yes I've seen it before but not in a view loop.

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.

Thanks,
Shane

#1134490

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.