Skip Navigation

[Resolved] Add New Type Form with RGF

This support ticket is created 2 years, 8 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 17 replies, has 2 voices.

Last updated by michielM 2 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2352399
Screenshot 2022-04-29 at 13.01.10.png

To explain I've addeed a screenshot.

The list is a View of all Locations connected to a Student. The first loop is indicated by the red rectangular.

Inside the loop there is a Relationship Form. In the settings of this form I can only choose either Student or Location to be set, but I know both. The only thing I need to add is the Workshop for this relationship, indicated by the green rectangular.

I'm open to do it differently as long as I can achieve the final goal (a Student being able to choose one of the Workshops for each Location that he has been assigned to.

#2352413

Ah, just found this at the bottom of the Relationship Form admin page:

"Connecting a post to a given post or editing existing connections
-Create the form using this wizard.
-Create an "editing-mode" template and insert the form into it.
-Link to the template from the “display-mode” template or a View."

As I will (through code) add the Student-Location relations, I only need to update those relations with filling in the Workshop field. Maybe you can help with doing step 2 and 3? What's an editing-mode template? How do I "link" that template from the "display mode" or View?

#2352743

Just occured to me: instead of showing a View of Locations, I had to show a View of Student-Location relations. Then added an Edit form for that very same relationship. Now it works!