Hello,
I'm really happy that I found Toolset and the support forum!
Till now, I’ve managed to set up everything that I wanted in my developing site, but I want to make some improvements as follows:
Before I go into details, please let me brief you what I already have:
1) Three post types: Employer, Job, Applicant
2) Two post type relationships: one-to-many relationship between "Employer" and "Job"; many-to-many relationship between "Job" and "Applicant" and Intermediator post type "Job-Applications" enabled.
(My previous support-ticket: https://toolset.com/forums/topic/direct-apply-jobs-from-front-end/)
I have added two Custom Fields at intermediate post “Job-Applications”,
“Application Status” (Select)
“Earned points” (Number)
I want to allow the Employer to edit this PRF after data submission from Applicant in front-end, so to change the Application status and input a number for points manually. I’ve tried with nested Views but didn’t succeed. Is it possible to achieve this with the CPT that I already have, or should I create another to manage this two, or just change the Workflow? As I also want to have a total of earned points for every Applicant later.
Also, I've noticed the PRF form doesn't offer notifications on the fly, but I guess they can me implemented with a custom code.
Many thanks for your time on this matter,
T
Hello,
The many-to-many relationship intermediator post type is also a custom post type, so you can also use Toolset post form to edit it in frontend.
In your case, you can try these:
1) Dashboard-> Toolset-> Relationships, find and edit the item "Job-Applications", enable option "Intermediary Post Type visible in WordPress admin menu", and save.
2) Create a post form for editing "Job-Applications" post, and setup the email notification setting:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/
3) Create a content template, for example: edit-job-applications, display above post form's shortcode
4) Create another new post view:
- Query "Jobs Applicants" posts,
- filter by:
a) Post type relationship "Jobs Applicants", for example:
Select posts in a Jobs Applicants relationship that are related to the Post where this View is shown.
b) Select posts with the author the same as the current logged in user.
- In view's loop, display the edit post form link, for example:
[toolset-edit-post-link content_template_slug='edit-job-applications' target='self']Edit[/toolset-edit-post-link]
5) in the single "Job" post, display above post view
More help:
https://toolset.com/course-lesson/front-end-forms-for-editing-content/
Hello Luo,
Thank you so much for your response - the support that you offer makes Toolset really exceptional!
Sure, I'll take your suggestion and implement it directly.
Will update in some hours, as I'm offroad.
I have marked this thread as "Waiting for feedback" status, please update here if you need more assistance for it.
Dear Luo,
Thank you again for your feedback!
I've managed to complete all steps from your previous post, but still it isn't what I wanted to achieve.
The problem is that the "Employer" cannot edit the "Job-Applications" - the Edit button doesn't show if I'm logged in as an Employer - it's only possible with an admin account.
Am I missing something or should I change anything in my workflow? I want that Status and Earning points to be assigned to any applicant from Employers manually.
Thank you for your time on this!
You can try with Toolset Access plugin, and allow "Employer" users to use the editing "Job-Applications" post form:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/
By having several Employers who publish jobs, that would allow each one of them to edit any "Job-Application" on the site. But, I want to allow only the ones who published the job to Edit the "Job-Applications" post. Is it my workflow to "primitive" for this?
You can enable "Edit own" + "Publish" privileges and disable "Edit any" privilege for Employers users to custom post type "Job-Applications" in Toolset Access plugin settings, see our document:
https://toolset.com/course-lesson/setting-access-control/
Dear Luo, thank you for your quick feedback!
So, I've tried both ways, "Edit any", and "Edit own" + "Publish" but the Edit button won't appear, as the "Job-Applications" are created from Employees.
I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins, it works fine.
Please check this in your website:
Make sure you have tried as I mentioned above:
https://toolset.com/forums/topic/edit-prf-submissions-in-front-end/#post-2155043
allow "Employer" users to use the editing "Job-Applications" post form:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/
I've followed your suggestion but still not succeeding. As I mentioned above, the "Employee" applies for a "Job", and "Job-Applications" is an Intermediary post.
Can you please share your setup with me? As I still can't make it that "Employer" to edit the "Job-Applications" form, related with his own posted "Jobs".
p.s. "Edit" link appears only for admin users.
Thanks a lot!
You can try these:
Dashboard-> Toolset-> Access control-> Toolset Forms, in section "Post Forms", find column for the "Job-Applications" post form, and enable user role "Employee", see my screenshot
Did that, but the Edit link doesn't show for "Employer" users - just for admin ones.
I'm going to to a fresh install and retry it.
Thanks!
I think we are not clear at some point: it is not the Employee that should change the status of the Job-Application, but the Employer.
Can you please re-consider my #2155265 post. Thanks!