Let's tackle these one at a time.


I only see one insert on the page. How is it supposed to add a new foreign key? What child table? Where does the pdf file come from? What file upload field are you referring to? I need a lot more information in understand what you are trying to do and why it doesn't work.


I don't see any code on the page that would insert based on these fields. Is this form just used for insert? It seems like you would need insert server behaviors for both of them.


You are going to need to add Insert Record Server behaviors for each table and row you expect to insert into. Maybe multiple insert server behaviors if you are using a repeated field like the checkboxes.
If you need help working on this, then the best option is to use premier support. I can help you debug issues you run into here, but if you want a tutorial on how to do something this isn't an efficient method. I really need to show you in a screen sharing session during premier support.