active-radio
class to the reset button and remove the w--checked
class from radio buttons.active-radio
class from the reset button to maintain consistent styling behavior.To make a reset button appear “active” like checked radio buttons, you’ll need to manually simulate the “checked” styling using Webflow interactions or custom classes, since reset buttons don’t have a built-in check state like radios.
active-radio
.w--checked
class from all radio button wrappers. Radio buttons are usually inside elements with the w-form-formradioinput
class.active-radio
class to the reset button.active-radio
class from the reset button.w--checked
from other radios to handle styling uniformly (optional).active-radio
class to match the visual state of a w--checked
radio (same border, background, etc.).w--checked
class is the default Webflow behavior for form elements marked as checked—mimic this in your styles.If Webflow Interactions are too limiting, add a bit of custom JavaScript in your Page Settings > Custom Code (before
):
<script> document.querySelector('.reset-button').addEventListener('click', function() { document.querySelectorAll('.w-form-formradioinput').forEach(el => el.classList.remove('w--checked')); this.classList.add('active-radio'); }); document.querySelectorAll('.radio-button').forEach(el => { el.addEventListener('click', function() { document.querySelector('.reset-button').classList.remove('active-radio'); }); });</script>
Make sure .reset-button
and .radio-button
are classes assigned to your elements.
To simulate an “active” state for a reset button like a checked radio button, use Webflow interactions or custom JavaScript to manually toggle classes. Apply a custom active-radio
class to style the reset button the same way as the w--checked
radio buttons.