I am trying to find a method of passing values from a parent form to a nested form (rather than using {parent} to pull the value).
In my situation my parent form is called Team. This is where I collect all the information about the team – the captain, the name, colors, and so forth. This form also has lines for entering the team members names (TM1, TM2, TM3, TM4, etc).
Then I have a second form called Player. This is where I will collect the details about the player – DOB, position, contact info, and so forth.
What I’m trying to accomplish is page 2 of the Team form will have @{tm1:4} at the top to show the player’s name, and then an instance of the Player form called Player1. I want to pass @{tm1:4} INTO the Player form so that Player:Name is filled with the value from TM1. HOWEVER, since I’m going to repeat this process, Player:Name will be @{tm1:4} in the first instance, @{tm2:5} in the second instance, @{tm3:6} in the third instance, and so forth. Which means I can’t just use {parent} in the Player form because it could be any one of several values.
I assume I can use live merge tags (@{tm1:4}, @{tm2:5}, @{tm3:6}, etc) to dynamically populate the values in the sub-form options, but I can’t figure out how to make it work. Specifically, I don’t know what goes in the Parameter Name field of the sub-form – essentially how to do Player:Name => Team:TM1.
Just to be clear, I am aware that there are better ways to accomplish the example I have here – such as entering the player’s name in the sub-form. However, this is a simplified example of a more complex form which requires passing a value into the sub-form so the value is also available to use elsewhere in the Parent form.
I don’t have a working version available to share because I haven’t figured out how to get passed this problem to make the form work.
[ad_2]