Skip to Content
Menu
This question has been flagged
1 Reply
2408 Views

I have 2 boolean (checkbox) so I want make like this. when I click first boolean (checkbox), boolean second is true then second boolean, condition first checkbox is true.

Avatar
Discard
Best Answer

Hi Athira,

You add @api.onchange method to change checkbox to true so if the first check box is true second one will turn. you can also add condition in that.

@api.onchange('firstcheckbox')
def _onchange_checkbox(self):

if first_checkbox:

    self.second_checkbox = True

Avatar
Discard