Sauter la navigation

[Résolu] open cred form via a view list

This support ticket is created Il y a 5 années et 9 mois. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 9 réponses, a 2 voix.

Dernière mise à jour par AndreG3332 Il y a 5 années et 8 mois.

Assisté par: Nigel.

Auteur
Publications
#1222270

I have a cpt called learner. with a cred form to add or edit records. One of the fields in the cred form is Short bio with radio fields to select "long bio" or "short bio". I need to be able to see a list of profiles where short bio was selected in a view and if you click the name of the person it must open the edit Learner form, with the specific learner's record so that the bio can be completed and reverted to a full bio.

I have created a view called incomplete profile listing that will show the learner's name and surname and social security nr. I have added a query to the view to filter out and only show short bio options.. This all works %

Now i need to add the option to make the profile name clickable so that it will open the "Edit New Learner Form" populate the form with the learner's name so that the profile can be completed.

Hiw do i achieve this?

#1222368

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Herman

Assuming your edit form is already set-up and available in a content template container (or a layout if you are using Layouts), then in the output section of your View use the Toolset Forms button to insert an edit post link, which will insert a toolset-edit-post-link shortcode.

You can use placeholders for the title and the post id within the text for the link.

#1222396
lms - edit learner form.png
lms - view of list of incomplete profiles -.png
lms result of list of incomplete profiles.png

Hi Nigel,

You seemed to have lost me somewhere. or me you. This is what I have done so far. I created a view called list of incomplete profiles. (img). And results of list of incomplete profile. (img)

Then i created a form Edit New Learner Form (img). From the form result list of incomplete profiles, I need the surnames to be hyperlinked, so that when you click the surname you will open the edit learner form with that specific user's profile be populated so that the profile can be completed in full.

To summerise, i need the page "result of list of incomplete profiles" to open with a list of all incomplete profiles on. The select the surname of one or the profiles ie "Olivier" which in turn will then open the cred form "edit learner form" with the Olivier profile populated and then complete the profile.

#1222533

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

The instructions for using edit forms are here: https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

The key part is that an edit form must be inserted into a template to act as a container before it can be linked to.

Once you have that ready then in your View (list of incomplete profiles) in the output section include a link to the edit form.

Use the Toolset Forms button to insert the edit post link, and choose your form.

#1222897

Hi Nigel ,

thx for that link. I can see where I lost the plot. Now am now trying to do the view (edit existing one or do a new one ) and adding the form edit-post link however that option is not in the dropdown options. There is one "edit post link", which is a standard WordPress option, but I cannot find the option "forms post-edit link" as per the tutorial page link you sent me.

#1222996

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screenshot 2019-03-29 at 12.04.34.png

You are using the Toolset Forms button?

#1223747

Hi Nigel,

I have tried to but it is not available on my views. The forms options are not showing

#1223820

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

herman_screenshot.png

The Toolset Forms button isn't available?

But on your own screenshot it is (I marked where).

We must be talking at crossed purposes here.

Do you want to give me access to your site and point me to where I can see the problem?

#1224004

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

edit-form-link.gif

Hmmm. It's right there.

Am I looking at the right View?

#1224342

My issue is resolved now. Thank you!