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.
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: lien caché )
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
My issue is resolved now. Thank you!