Sample attributes disappear when taking a picture (only when relation is used)

I have created a QField project for a sampling trip and created a relation so I could take multiple pictures per sample point, but each time I take a picture, the data I used on sample attributes, which are from a value map widget and have an enforced null constraint, the fields just get blank, and I have to fill the fields again, so I could take a new picture.

I know I could create multiple fields, like Photo 1, and Photo 2, Photo N group them under a Picture tab, and be done with it, but it really bothers me that I can’t make it the intended way. Did anyone else encounter this behavior? Do you have any idea what might it be related to?


Imported from GitHub discussion by @UsulPaul on 2023-05-05T16:17:15Z