Short recipe to show how to use "transform" function with smart fields. See more about Virtual functions here
Consider having 2 forms
One form with a field "choice" and of type "text"
There is no limits on a number of functions you can chain, and there is no limits on the depth of the references to another forms (can navigate as much as you need)
More on Virtual functions here