Skip Navigation

[Resolved] Repeatable Field Group Form auto select post where this form is shown Elementor

This support ticket is created 3 years, 5 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by andrewD-10 3 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1812827

Hi toolset,

Video: hidden link

I am trying to exactly what this documentation says: https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

I have a post and a repeatable field group (RFG) where every time someone adds a RFG to a post the post will automatically be selected where the form is shown. However, I am using elementor and would like to know if there is a way to achieve the parent post automatically selected when adding a RFG on the post specific page using elementor and shortcodes. I haven't used blocks but I am assuming the two don't work really together as they are providing the same functionality on a post page.

Thank you,
Andrew

#1813399

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you switch your form to "Expert Mode" and then with the field that displays the parent post, you should try to add the attribute value="$current" this will help you to set the current post as parent of the post you are editing.

For example:

[cred_field field='@employee-post.parent' class='form-control' output='bootstrap' value="$current" select_text='--- not set ---' required='false']
#1814427

Thank you Minesh! Works perfectly

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.