On content edit, how can I check/select a bool field based on which tab is active? I have a content type with a paragraph that has two fields, each field inside its own tab controlled by the form display like so:



Here is what the set of tabbed fields looks like when editing a piece of content of the content type:





The paragraph also has a bool field called field_active_callout_tab with two values: 'Single' and 'Multi', same as the tabs.

If the 'Single' tab is clicked, I want the bool to be checked. If the 'Multi' tab is selected, I want the bool to be unchecked.

I tried to use the Conditional Fields module, but it will not allow control by tab label. How can I establish this dependency between the tab and the bool?
You can do it with jQuery, something like this should do it:

$('.single-class').click(function () {
    $('.bool-class').prop('checked', true);
});
$('.multi-class').click(function () {
  $('.bool-class').prop('checked', false);
});