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.
Boolean checkbox in nested form can't be unchecked
-
- Posts: 174
- Joined: 23 Feb 2021, 16:31
- Name: Edi Supriyadi
- Location: BDG Indonesia
- 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
This field type is conflicted. You can configure to display fields in new window and this way will work ok.
-
- Posts: 174
- Joined: 23 Feb 2021, 16:31
- Name: Edi Supriyadi
- Location: BDG Indonesia
Re: Boolean checkbox in nested form can't be unchecked
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.
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.
-
- Posts: 174
- Joined: 23 Feb 2021, 16:31
- Name: Edi Supriyadi
- Location: BDG Indonesia
Re: Boolean checkbox in nested form can't be unchecked
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!
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!
-
- Posts: 174
- Joined: 23 Feb 2021, 16:31
- Name: Edi Supriyadi
- Location: BDG Indonesia
Re: Boolean checkbox in nested form can't be unchecked
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.