Boolean checkbox in nested form can't be unchecked

Any critical bugs will be fixed within 24-48 hours.
Post Reply
eddydeniro
Posts: 174
Joined: 23 Feb 2021, 16:31
Name: Edi Supriyadi
Location: BDG Indonesia

Boolean checkbox in nested form can't be unchecked

Post by eddydeniro »

Hi, I'm new user of Rukovoditel so I have no idea if it's a bug or I missed something here.
I added boolean checkbox field in entity Tasks, made a nested form Tasks in entity Projects.
When I edit the Projects, I can't uncheck the checkbox in nested form.
However if I edit from Tasks, it works as expected.
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Boolean checkbox in nested form can't be unchecked

Post by support »

This field type is conflicted. You can configure to display fields in new window and this way will work ok.
Attachments
screenshot-localhost-2021.06.16-07_52_01.png
eddydeniro
Posts: 174
Joined: 23 Feb 2021, 16:31
Name: Edi Supriyadi
Location: BDG Indonesia

Re: Boolean checkbox in nested form can't be unchecked

Post by eddydeniro »

Thank you for your response.
Tried your suggestion and it seemed working at first.
I mean, when I unchecked, the "Yes" label disappeared in the nested table. But when I opened the same project, the "Yes" returned.
I confirmed by going to the related Tasks record, and yes... it's still checked.
I guess I can't use the nested form for the child entity that has boolean checkbox.
eddydeniro
Posts: 174
Joined: 23 Feb 2021, 16:31
Name: Edi Supriyadi
Location: BDG Indonesia

Re: Boolean checkbox in nested form can't be unchecked

Post by eddydeniro »

Oh I forgot one thing.
Thank you so much for this incredible application, Sergey, Olga, and team.
Very well designed, great user management, comprehensive features, easy use yet flexible enough to scale up.
Tried many similar softwares before. This one is the best! Thank you!
eddydeniro
Posts: 174
Joined: 23 Feb 2021, 16:31
Name: Edi Supriyadi
Location: BDG Indonesia

Re: Boolean checkbox in nested form can't be unchecked

Post by eddydeniro »

support wrote: 16 Jun 2021, 08:52 This field type is conflicted. You can configure to display fields in new window and this way will work ok.
After digging a bit into the script, I think this happened because HTML forms normally dont send the unchecked checkbox value meanwhile the field update relies on the posted values. Only from the Tasks page, the update succeeded because the module called all the fields from database. Perhaps you would consider to "push" the checkbox value to get posted, esp when unchecked, maybe using simple JS or hidden input (same name, value 0). Just my 2 cents.
Post Reply