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?
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
});