QField icon indicating copy to clipboard operation
QField copied to clipboard

Always open child form in the first container

Open Ipickedausername opened this issue 10 months ago • 5 comments

Hello,

When a child feature is added, the displayed container is always the last one that was open. If there is 4 containers and you save the feature while you were on the third one, then when you add a second child it will open on the third container.

I suppose it should always show the first container (I didn't check what happen if the third container visibility depends on a value from the first container, which one is missing when we add a child).

Here is a video that shows this behavior:

https://github.com/opengisch/QField/assets/72577399/16d67513-8ab7-42d2-a0ea-61de438346af

Desktop (please complete the following information)

  • OS: [e.g. Windows 10]
  • QGIS Version [ 3.26.0]
  • QFieldSync Version [.4.a.0]

Mobile (please complete the following information)

  • Device: [samsung Galaxy 9]
  • OS: [e.g. Android 8]
  • QField version: qgield master-dev af01c8
  • Problem started happening recently, didn't happen in an older version of QField: [Yes]
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
  • Problem happens with all files and projects, not only some files or projects: [Yes]

Thank you !

Ipickedausername avatar Aug 13 '23 05:08 Ipickedausername

Just FYI your post shows only a thumbnail jpg, not a video.

she-weeds avatar Aug 18 '23 04:08 she-weeds

Post edited. Thank you.

Ipickedausername avatar Aug 22 '23 03:08 Ipickedausername

@Ipickedausername , could you attach a small test project for this? Thanks

nirvn avatar Aug 26 '23 09:08 nirvn

Hi, I tested again, and this behavior happens when a checkbox is ticked in one of the containers of the child feature.

Ex: If one of the child's field has a repeated value (ticked), then, if one container (not especially the one with the ticked value) was the last visible before validating the child feature, this same container will be displayed when another child feature is opened... Hard to explain.

Here is a project example. I left some data on it, so you can see it is very slow to load, and the symbology is delayed (maybe it can help to improve also).

This is the packed project for Qfield: test_proj.zip And this is the QGIS version: QGIS_V.zip

Thanks !

Ipickedausername avatar Aug 28 '23 15:08 Ipickedausername

Hi,

According to my last uses, the issue still exists. Actually, the issue is easier to spot, the last container is always displayed, instead of the first one.

If your form has several containers (in my cases tabs), after saving the feature, if you add another feature, this one will display the last opened container.

I think, the first one should always be displayed, no?

Ipickedausername avatar Apr 25 '24 15:04 Ipickedausername