I'm new to post relationships and i would like to create a front-end form to create job posts. Is there a way to create a front-end field with post relationship options?
Thanks for your response. It's a many to many relationship. I'm trying to build a job site with Toolset where i have multiple post types: Jobs, Employments, Locations, etc. There can be multiple jobs within a location, etc.
Unfortunately with Many to Many relationships you will need to create a separate relationship form in order to setup the relationships on the frontend.
But how does this work when a user (not admin) tries to post a job through a form? He can't select the attributes of the job then like location, employment, etc. It would be nice if a user can select one of all locations within the post relations. Or that i use custom fields for this but after submit they are added as a post relation from the custom post type.
I would like to have a possibilty for users to find a job in multiple ways, like by location, by education, etc. A job can be a one to many, but with this method a job needs to be posted twice or more if it's available in multiple locations of a company. Or when multiple education levels are applied to a job. Is it possible to create a front-end form for posting jobs if all relationships are one to many?
The limit settings for one to many would mean that 1 single job can only be added to one location. However in your case if you Create lets say a Job, Database Administrator and one of the location is Miami.
Now if another position opens at New York, you will create a duplicate of that same job and just set its Location to New York.
The locations can have many different jobs, its just that a Job can only have one location.
Alright thanks. Now i want to create a form to submit jobs. Do i need to create a post form or relationship form? I tried to create a post form but then i can't find the relationship fields..
If the relationship field has been setup in types then you should have a relationship option when creating the form in the visual editor. See Screenshot
From there you can just drag this field onto your form.
I think i'm doing something wrong.. I have only one to many relationships now and when i go to Toolset > Post forms and add a new one i can't see the relationship fields..
Edit: If i create post reference custom fields i can add these fields to the form hidden link.
But can i populate the dropdowns with options from the post types, so a user can pick one?