You're attempting to created an interactive XFA based PDF form. Are you going to be trying to load this in a browser? If so you'll run into issues, you may want to look at rendering the form as HTML5 or using Adaptive Forms. Let me know which direction you want to go.