Checkbox Groups and Radio Groups missing events

Just wondering if this is something I am doing wrong or if the events normally attached to checkbox groups and radio groups is missing.

The dmx-on:updated="" I am almost certain used to be accessible when using checkbox and radio groups in the UI, it still works if I add the code in manually, so a bit unsure.

<div class="form-group" id="input1_group" is="dmx-radio-group" dmx-on:updated="sc_get_and_set_product_card_filters.load({pcf_tag: value})">
  <legend class="col-sm-2 col-form-label">Some radios</legend>
  <div class="form-check">
    <input class="form-check-input" type="radio" value="" id="input1_1" name="input1">
    <label class="form-check-label" for="input1_1">First radio</label>
  </div>
  <div class="form-check">
    <input class="form-check-input" type="radio" value="" id="input1_2" name="input1">
    <label class="form-check-label" for="input1_2">Second radio</label>
  </div>
  <div class="form-check">
    <input class="form-check-input" type="radio" value="" id="input1_3" name="input1">
    <label class="form-check-label" for="input1_3">Third radio</label>
  </div>
</div>

Hi Paul,

You can directly use the value of the checkbox group in the get param of the server action component, without the need to reload it on updated event. It will auto reload the server action on change.

And can i do that if this radio group is not physically inside a form component and has no submit button?

My server action at the moment gets a bunch of records on page load and displays them

Then i have some filtering options, not inside a form, and with no submit button, they click a checkbox or radio button and it runs the server connect action again with the selected value setting the get parameter.

So the only way I can see not needing the the form, or submit button to direct it to the correct server action, would be to use the dynamic events, in my case on updated.

You don’t need a form to filter a server connect component on the page, using get variables.

Ok, thats exactly what I thought. So if no form is needed and no submit button needed because it is not POST then without a dynamic event of on click or on updated or something like that how would I direct the checkbox / radio group to the correct server action which it needs to pass the get parameter to?

1 Like

Ahhh, I see, so that how it will get the on updated, ok, thanks Teo