Radio Button Issue, Radio buttons returning different output |
Radio Button Issue, Radio buttons returning different output |
WVJason |
Nov 3 2021, 03:29 PM
Post
#1
|
Group: Members Posts: 1 Joined: 3-November 21 Member No.: 28,168 |
I have a simple form we use internally that has several groups of radio buttons. The form is summitted by email using a perl script.
Most of the radio buttons are yes/no options. The buttons that are working correctly email the input as (X) Yes ( ) No. I have a few sections that are not giving that output but email the radio value as Yes ( ) Yes ( ) No All of the radio button code appears to be formatted the same. I have never had this output issue before and can't find reference to it online. Working Code CODE <input type="radio" id="ems_called_yes1" name="EMS Called 1" value="Yes"> <label for="ems_celled_yes">Yes</label> Non-Working Code CODE <input type="radio" id="Task1_yes" name="Task 1" value="Yes"> <label for="task_yes">Yes</label> |
Christian J |
Nov 3 2021, 04:55 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,659 Joined: 10-August 06 Member No.: 7 |
This could also be caused by a bug in the Perl script.
I have a few sections that are not giving that output but email the radio value as Yes ( ) Yes ( ) No Could it be that the user hasn't checked any of the radio buttons in a group? It's good practice to always have one radio button in a group pre-selected. You might provide an extra radio button for choices like "Neither" when necessary. QUOTE Working Code CODE <input type="radio" id="ems_called_yes1" name="EMS Called 1" value="Yes"> <label for="ems_celled_yes">Yes</label> Non-Working Code CODE <input type="radio" id="Task1_yes" name="Task 1" value="Yes"> <label for="task_yes">Yes</label> The ID and FOR values don't match (lots of typos), so clicking the LABEL elements would not check any radio button. What do the other radio buttons in each pair/group look like? |
Lo-Fi Version | Time is now: 26th April 2024 - 04:53 PM |