Summary
This is a follow up question of that one, that I asked a year ago when FormBuilder was not as advanced as today. There was no easy solution, now there is almost one, so a big thx and congrats to the FormBuilder developpers :)
Our use case is probably very common : a form where a parent can fill in his own data and the data of his two children, with "parent of / child of" relationships.
We would like the names and data of the parent and related children to be auto-filled, if already present in Civicrm, and this is where we are failing for the second child.
- Parent autofill : ok
- Child 1 autofill : ok
- Child 2 autofill : NOT ok, it is autofilled with the data of Child 1 :(
Details
This form seems to work as expected to create new parent and children from a blank form
Then we use the email token in Civimail, so that existing Parents can update their data and children.The email token is {afform.afformTestLink}
Autofill is working ok for the parent, and one child
For Parent1 :
For Child 1: "child of / current user"
For Child 2: same as child 1, although the parent as 2 different children already related to him in civicrm
PROBLEM
child 2 is autofilled with the same data as child 1 :(