Skip Navigation

[Resolved] relationship forms not showing in elementor forms widget

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+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 12 months ago.

Assisted by: Nigel.

Author
Posts
#2699121
Screenshot 2024-05-23 at 10.34.14 PM.png
Screenshot 2024-05-23 at 10.34.45 PM.png

I am trying to: to add relationship form using Elementor forms widget. However they do not show up . If I use wordpress classical page editor the toolset form widget shows the relationship forms. See attached screenshots.

Link to a page where the issue can be seen: internal to elementor page builder

I expected to see: relationship forms part of the list in the widget.

Instead, I got: no relationship forms showing.

#2699160

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

I suggest you insert the relationship form into your Elementor page using a shortcode (which you can add to an Elementor text module).

Go to Toolset > Settings and under Admin toolbar options make sure the Toolset shortcodes menu is enabled in admin pages.

Then from a back-end page, such as the list of Pages, in the admin toolbar you'll see a Toolset Shortcodes link, from which you can select the Relationship form you want to insert, and which will generate a shortcode that you can then paste into your Elementor content where required.

#2699231

Yes that works, but is this a bug with elementor or is there a problem why it is not showing, as I'm also seeing the relationship not showing when creating a view of related posts.

#2699289

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

The relationship forms are fundamentally different than the regular forms to publish posts, and the Elementor widget to insert forms is only intended to work with regular forms.

Hence you'll need to use a shortcode to insert relationship forms.

The relationship will be offered when creating a View if the context is right.

So if you had a M2M relationship between "Artists" and "Events" and you wanted to show "Artists" related to an Event, the starting point where you are creating the View would need to be the Content Template for Events, so that there was a "current Event" for Artists to be related to.

If you tried to create the View on a page there would be no current event, so the option wouldn't be offered.

#2699313

Great, thanks for the help