Skip Navigation

[Resolved] Update data directly in a view with CRED FROM

This support ticket is created 5 years, 9 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1189938

Tell us what you are trying to do?
I want to update data in a list view (i.e. category or Title). I created a CRED form to change this data on a detail page, witch is working perfectly. To speed up the update process of many data sets, I put the CRED Form in a view, so it shows on each data set. In the view the CRED form does not update the data as expected. How is it possible to use CRED forms in list views?

#1189986

Hi, it might be technically possible in some simple cases but it's not recommended. I'm aware of at least one known issue that occurs with AJAX pagination in Views with nested Form shortcodes in the loop: https://toolset.com/errata/views-ajax-pagination-url-parameters-are-added-to-cred-user-edit-links-in-a-user-view-loop/
...and there are likely to be other issues as well because it's not the intended approach. Including a Form in the loop isn't supported explicitly, but you could try using the built-in page redirection, or custom redirection with the Forms API. That could help speed up the process a bit by automatically returning the User to the list after doing an edit in a Form on another page. Custom redirection is supported to some extent here in the forums because it utilizes a published API: https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect