Problem:
The user would like to have the parent post selected automatically in a form.
Solution:
Regarding the first question, you will need to put the form inside a content template that is bound to the parent post. For example, create a view that will query the "Member" posts where the current user is the author, it should return one post if the user has already a post. Inside the loop, which is bound to that post, you can put the form and use the technique in the following article or the following similar tickets:
- https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected
- https://toolset.com/forums/topic/repeatable-field-group-form-auto-select-post-where-this-form-is-shown-elementor/
- https://toolset.com/forums/topic/set-a-default-parent-value-for-a-repeating-field-group-front-end-form/
The trick is to bind the post using a content template, using the item attribute, or inside a view's loop.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
Relevant Documentation:
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: Africa/Casablanca (GMT+01:00)
Dieses Thema enthält 2 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 4 Jahren.
Assistiert von: Jamal.