Auto Populate Relationship Field
-
I have a WordPress site in a local server that uses Pods to create custom fields. It’s a genealogical website and what i am trying to achieve is the following:
I a have a parent Pod called baptism used to create a post to register (lets say) someone called Antonio. From that parent post i can create child posts of Antonio’s relatives using a Pod named baptizand_relative.
I have relation fields on both pods to link the two pods, but I would like that the relation field in the child post to be automatically populated with the related parent post (so that it would not have to be filled in manually by the user)
Settings of the concerned fields
Parent Pod: ‘baptism’
Name: ‘people_related_to_baptizand’
Field type: Relationship
Related Type: Relatives (baptizand_relative)
Bi-directional Field: Relatives of the baptizand (relative_to_the_baptizand) [Pod: baptizand_relative]
Chlid Pod: ‘baptizand_relative’
Name: relative_to_the_baptizand
Field type: Relationship
Related Type: Baptisms (baptism)
Bi-directional Field: Add person mentioned in the record (people_related_to_baptizand) [Pod: baptism]In short when I create a post for a baptized person named Antonio, I can then add other people mentioned in the record. Let say the godfather was Joseph.
When I add Joseph from the parent post I will have to manually fill the field relative_to_the_baptizand with the related parent post Antonio. I would like this to be auto-populated with the corresponding parent post to avoid mistakes (this is especially important because there will be a lot of people with the same name, making it very difficult to manually insert the wright info.
I am fairly new to the world of Pods so please bear this in mind when providing you much welcome support.
Thanks in advance.
- The topic ‘Auto Populate Relationship Field’ is closed to new replies.