Skip Navigation

[Resolved] Possible to have edit link that show edit form inline?

This support ticket is created 6 years, 1 month 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 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1152450
example.jpg

I am testing the Toolset Forms training demo at discover-wp site. I have modified the Loop item in All ads view and added a [cred_form form='edit-ad'] which shows the edit form inline which is what I want.

So it looks like this
[types field='ad-image' size='medium' align='none' resize='proportional'][/types]
[wpv-post-link]
[cred_form form='edit-ad']

But I would like to make it work so initially an edit link is shown and not the entire form. When the link is clicked I want the [cred_form form='edit-ad'] to be shown inline for the current post in the loop. So I can quickly edit things inline.

Is this possible if so how would I accomplish this?

#1152759

Hi, just to be clear we don't recommend placing Edit Post Forms in a View's loop. The best practice is to use a separate Content Template or Template Layout to contain the Edit Post Form, and to insert an Edit Post Form Link in the View instead. If you want to include inline Forms, you would have to insert the Forms inline like you have already done, then use custom JavaScript and CSS to show and hide each Form when a link is clicked. Since it's not officially supported, it's not something I can help you with here in the forums. With that being said, you can insert custom JavaScript using jQuery in the View's Loop Editor JS panel like this:

jQuery(document).ready(function($){
  // your link click code here
});