CGBetterForms radio button Label errors

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am
Location: Sydney Australia

CGBetterForms radio button Label errors

Post by Simon66 »

When I scan my form I get multiple errors about missing labels on all radio buttons.

This is my code:

Code: Select all

<div class="option-group field">
	<div class="smart-option-group smart-option-list group-vertical"> 
		<label for="male" class="option">
			<input type="radio" name="gender" id="male" value="Male" data-cgbf-label='gender'>
			<span class="smart-option smart-radio">
				<span class="smart-option-ui"> 
					<i class="iconc"></i> Male
				</span>                                  
			</span>
		</label>
		<label for="female" class="option">
			<input type="radio" name="gender" id="female" value="Female">
			<span class="smart-option smart-radio">
				<span class="smart-option-ui"> 
					<i class="iconc"></i> Female
				</span>                                  
			</span>                  
		</label>                            
	</div>
</div>
The messages read:
Could not find a label for field "gender" at about line 42.
Could not find a label for field "gender" at about line 51.
I've tried using the data-cgbf-label on the first radio input but it doesn't seem to work.

Does anybody know how to make these radio buttons scan correctly without errors?

Cheers
Simon66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: CGBetterForms radio button Label errors

Post by calguy1000 »

i found a small adjustment to make in the form scanning process.
but in the mean time, try using data-cgbf-human instead of data-cgbf-label
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am
Location: Sydney Australia

Re: CGBetterForms radio button Label errors

Post by Simon66 »

Thanks Calguy!
Post Reply

Return to “Modules/Add-Ons”