Forums

Checkbox fields getting split

MarcHudgins 07 Mar, 2009
I have some fairly lengthy boiler-plate items that need to be checked.

example:
I have read, understood, and will abide by, the terms outlined in the vendor information sheet.

I can set up the form in the Wizard and it looks fine, but once it actually puts up the form, the lines get split with each line getting it's own checkbox:
I have read
understood
and will abide by
the terms outlined in the vendor information sheet.

Any ideas?

I should note I've tried placing one option per div as well as multiple options and they get split no matter how I set it up.

thanks,

Marc
GreyHead 07 Mar, 2009
Hi Marc,

It looks as though the text is being formatted as a label instead of a text item. Can you post the form Html for this snippet here.

Bob
MarcHudgins 07 Mar, 2009
Here you go:
<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label"></label>
    <div class="float_left">
      <input value="I have read" class="radio radio validate-one-required" id="I_have_read" name="check3[]" type="checkbox" />
      <label for="I_have_read" class="check_label">I have read</label>
      <br />
      
<input value=" understood" class="radio radio validate-one-required" id="_understood" name="check3[]" type="checkbox" />
      <label for="_understood" class="check_label"> understood</label>
      <br />
      
<input value=" and will abide by" class="radio radio validate-one-required" id="_and_will_abide_by" name="check3[]" type="checkbox" />
      <label for="_and_will_abide_by" class="check_label"> and will abide by</label>
      <br />
      
<input value=" the terms outlined in the vendor information sheet." class="radio radio validate-one-required" id="_the_terms_outlined_in_the_vendor_information_sheet." name="check3[]" type="checkbox" />
      <label for="_the_terms_outlined_in_the_vendor_information_sheet." class="check_label"> the terms outlined in the vendor information sheet.</label>
      <br />
      

    </div>
    
  </div>
  <div class="clear"> </div>
</div>

Thanks,
Marc
GreyHead 07 Mar, 2009
Hi Marc,

Looks to me like there is a bug in the form parser that's creating a new input each time it sees a comma.

@Max - please take a look!

The code should be something like this[code]Here you go:
<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label">I have read, understood,  and will abide by the terms outlined in the vendor information sheet.</label>
    <div class="float_left">
      <input value="terms_checked" class="radio validate-one-required" id="check3" name="check3" type="checkbox" />
  </div>
  <div class="clear"> </div>
</div>

Bob
MarcHudgins 08 Mar, 2009
Thanks for that. I had a feeling I'd have go and in and tweak by hand. If nothing else, it's a worthy bug report. I'll let you know how it goes once I get back to it.

thanks again,

Marc
Max_admin 08 Mar, 2009
Hi Marc, Bob,

yeah, this looks like a bug and I will fix it in the RC3!

Thanks!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.