Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Displaying Fields of Parent Pages in a CRED Form

$
0
0

The idea:
1. You create a View showing full parent info based on a specific id received in URL (see picture 1, this is a simple View having Company post type selected in 'Content Selection' section and all Companies fields in the loop, see picture 2)
2. You insert this View in your CRED form for creating a new child (see picture 3)
3. The add new child CRED form must be called with the parent's id being passed into (see picture 4)

When you click Add Employee button your URL will look like this:
http://abury.host/companies-employees/add-an-employee/?parent_company_id=333

look at the end, there is ?parent_company_id=333
so now, the CRED form knows his parent's id and the View used in that form receives the id as a parameter. Now is ready to show full parent info (see picture 5)

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.


Viewing all articles
Browse latest Browse all 20145

Trending Articles