Thank you for sharing the access details.
Here are the steps, that I'll recommend:
1. You can register a custom shortcode, that returns the ID of a 'DOTM submissions' post, if the current user has created one, as an author:
add_shortcode( 'current_user_sub_id', 'current_user_sub_id_func');
function current_user_sub_id_func()
{
$current_user_id = get_current_user_id();
if($current_user_id > 0) {
$args = array(
'posts_per_page' => 1,
'post_type' => 'dotm-submissions',
'post_status' => 'publish',
'author' => $current_user_id,
);
$posts_array = get_posts( $args );
if($posts_array) {
$target_post_id = $posts_array[0]->ID;
} else {
$target_post_id = 0;
}
} else {
$target_post_id = 0;
}
return $target_post_id;
}
The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.
This shortcode will return the current user's 'DOTM submissions' post ID if it exists and if not or if the user is not logged in, it will return '0'.
2. Next, please add "current_user_sub_id" in the "Third-party shortcode arguments" section, at WP Admin -> Toolset -> Settings -> Front-end Content.
3. On the page, where you'd like to show the edit form 'Edit DOTM form', you can call it through the form's shortcode, like this:
( ref: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form )
[cred_form form="Edit DOTM form" post="[current_user_sub_id]"]
As a result, the edit form will load with the current user's 'DOTM submissions' post selected for editing.
I hope this helps and please let me know if you need further assistance.