Skip Navigation

[Resolved] Can't Seem to Get RSVP Working – Default Relationship…

This support ticket is created 5 years 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
- 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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by GeneP3364 5 years ago.

Assisted by: Luo Yang.

Author
Posts
#1515859
rsvp-test.PNG

Tell us what you are trying to do?
I'm trying to setup a Content Template for "Events" (parent) that contains a Post Form for "RSVPs" (child). The relationship is set up as one event -to- many rsvps. The RSVP form is really simple - just the relationship selector for the "Event" and the submit button.

I changed the submit button to read "RSVP". The selector by default has --Not Set-- ... this is my issue.

The idea is that click on an existing Event. This brings up all the data for that event along with the RSVP button. The relationship field would be hidden, because, by default the value of the relationship would equal the existing event that you're on.

Is there any documentation that you are following?
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/
I feel like this is close, but I'm missing something... it doesn't explain how the default is set.

"the form will automatically select the parent" - not happening for me.

Is there a similar example that we can see?
See the image, and if you need more details I'll share them.

What is the link to your site?
I would love to share every detail with you, but I don't want ANY of my site details made public. I'm not seeing an option to hide details like my site address or theme framework or php / mysql versions, etc. I really think this privacy for these details should be available from the very beginning of any support request. Even some pics might need to be made private, but I don't see options for that either. Surely I'm not the only person concerned by this.

#1515907
relationship-field.JPG

Hello,

Q1) it doesn't explain how the default is set.
The document you mentioned above is for this:
1) In a single post, display a child form link, this link will be able to pass current post ID as URL parameter
2) So in the child form, it will use the URL parameter as default value of relationship field.

Q2) The selector by default has --Not Set-- ... this is my issue.
In your case, you are displaying the child post form directly in parent post, so it will be different from above document.
I suggest you try this, edit the post form for creating child post.
https://toolset.com/wp-content/uploads/2020/02/1515859-rsvp_test.png

Find and edit the relationship field, in option "Field default value", fill shortcode of Toolset Views/Blocks plugin: [wpv-post-id], it will be able to use current parent post ID as default value of relationship field, see screenshot relationship-field.JPG

More help:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-post-id

#1517397

Thank you, that was definitely it. I highly recommend you include the option I had in the documentation and include your screen shot and instruction. My issue is resolved now. Thank you!