Child layer's relation field must be present in form otherwise relation won't be saved in Input
I'm trying to hide foreign key fields from my layers in Input. User is supposed to access child features via parent feature form. I've been unsuccessful for now and I'm not sure if this is a bug or if I am missing something.
I've created an example project. In it I've created two layers, one parent and one child. Relation is set in QGIS and it is 1:N. I have a simple form setup and depending on if I have the child table's field containing the parent key in the form or not, Input fails to assign relation value to said field.
An example of excluding the field in child table form (Input doesn't work):

An example of including the field in child table form (Input works):

It is important to note that I'm accessing child table form through existing parent feature. In QGIS this happens with identify tool. In Input I press the parent feature and access the second tab in form.
I have an example project Ubiguville/relation_bug which is public.
This may have been fixed by https://github.com/MerginMaps/input/commit/0ba2a711b34867f203a93dc913e6d95bbe5db7d4
Current status (v2.3.0)
- it is possible to assign "hidden" widget in parent form for
unique_id - when you delete relation widget in child feature, the saved feature does not have stored reference to parent layer
test project: Bug1761
Yep, should be fixed already
The issue still persists. When a relation field is included to layout, the project works correctly in both QGIS and Mergin Maps. However, after removing the relation field from the layout, it continues to work in QGIS but fails in Mergin Maps.
Mergin Maps version 2025.6.0
Hello @joonaris, could you also add which version of Mergin Maps you are using?
Hello @Withalion, Mergin Maps version 2025.6.0