JavaScript Tips: Resetting Radio Button Fields Easily
- schooloffiche
- Dec 1, 2025
- 1 min read
Updated: 8 hours ago
Introduction: Radio buttons are designed for single selection, and by default, once a user picks an option, they can’t unselect it without choosing another option. This can be frustrating if the user wants to leave the question unanswered or reset their choice. This script allows you to clear the field with just one click!
Test Version: Laserfiche Forms Professional Version 12.0.2503.10378
Setup: Download codes from Bait and Tackle.
Verify a Lookup is complete - Modern Designer
1. Add a radio button field to the form. This will be the field that receives the “clear” action.

2. Add a second field that will be used to trigger the clearing behavior. This trigger field may be configured as either a radio button or a checkbox, depending on your design.

3. Open the form’s JavaScript editor. In Laserfiche Forms Modern Designer, select JS in the upper-right corner to access the script panel.

4. Insert the Day 1 script. Copy and paste the JavaScript code provided from Day 1 Bait and Tackle library.
5. Update the field IDs in the script to match your specific form. Replace the placeholder IDs (e.g., Field1, Field2, etc.) in the script with the actual IDs of:
the radio button field you want to clear
the trigger field that initiates the clear action



