I am at the very early stages (not even theming yet) of setting up a company portal application on a WordPress site. For the first stage, it will be used for employees to log in and fill out a timesheet.
For this piece of the project, I have parent-child post types created for Timesheet (the parent) and Timesheet Entry (the child). It is a one-to-many relationship meaning the Timesheet can have many Timesheet Entries but the Timesheet Entries is only associated with 1 Timesheet.
What I am trying to setup in the Timesheet View is similar model to what is demonstrated here in this article:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/#creating-forms-when-a-parent-post-is-preselected
Everything is almost setup but there is one thing that I would like to implement in this workflow. The timesheet view has a list of the related timesheet entries posted and a button to add more. When taken to the add Timesheet Entry form, it would be perfect if after submission the user is returned to the Timesheet view. Right now the best I can do is take the user to the Timesheet Entry post they just created but this is not really ideal.
I created a suggestion ticket asking to make Parent Post an option after form submission. This was the response and the suggestion was to use the Forms API and open up a How-To ticket: https://toolset.com/forums/topic/option-after-child-post-form-submission/
Thank you so much for your help.