How can you autocomplete fields from table data?

would like to autofill in an ID field with the corresponding ID from the mainpage.

Example:
Table1:
ID_table1, field1, field2

Table2:
ID_table2, FK_ID_table1, field2

Now a list view of table2 is added to the view of table1.
When pressing the button to add a new entry into table2 i would like to autofill in “FK_ID_table2” with the main page value for “ID_table1”

@ddiaz please use the SubForms configuration in Add Page Properties, and that will be taken care of automatically.

OR

You could use the Field Value Data Bind configuration Subpage Add Component Property.