Skip Navigation

[Resolved] Associate the new repeatable field post with the front end page it appears on

This support ticket is created 2 years, 7 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.

Our next available supporter will start replying to tickets in about 5.59 hours from now. Thank you for your understanding.

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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Bobby339 2 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2351051
service-dropdown-front-end.png
cred.png

Hello! I have a CPT called "Stories" and there is a Repeatable Group Field called "Services" and I created a CRED front end form allowing users to add as many "Services" as they need to their Story.

All works good!

My question is how can I get rid of the "parent" dropdown on the form (its very confusing for people to use) and just associate the new repeatable field post to the page that the form is appearing on.

#2351391

Hi,

From your screenshot, I see that you've added the shortcode "wpv-post-id" in the value attribute of the parent selection field, however, the square brackets are missing.
( screenshot: hidden link )

You can wrap that field's shortcode inside a hidden div so that it is not visible on the front-end and value="[wpv-post-id]" attribute will make sure that the current story post is automatically selected in the field:


<div style="display: none;">
[cred_field field='@bill-services.parent' class='form-control' output='bootstrap' select_text='--- not set ---' required='true' value="[wpv-post-id]"]
</div>

regards,
Waqar

#2351427

My issue is resolved now. Thank you!