I have multiple relational tables. When I select a row from Table A on the primary screen, I display all related rows from Table B on a second screen, with the option to "Add a new Row". When I select the "Add New Row", it throws the form into Edit Mode, and I can add all the data. One field in this form is the Primary Key to Table A (to create the relationship). I have the editform set up to place the default value in the Key Filed Datacard, and I see it there on the form, but when I click on the submitform, everything entered into the form is saved EXCEPT for the field I set the default for. Thus, I get no relationship.
For the Default Value of the datacard for the ID field, I have the following...
If(EditForm_Installations.Mode = FormMode.New, VarRecord.Server_ID,ThisItem.DB_Install_Server_ID)
And, as I stated, I see the value there.
The Submit is just a simple
SubmitForm(EditForm_Installations)