Error with no name & more

DevDes 26 Aug, 2011
Hi there!

i'm not really a forum user but I feel I have to make use of it right now. I'm using:

ChronoForms_V3.2.0
Joomla 1.5.23

My knowledge with JS and PHP is very little.

I made a custom joomla template and I'm using Chronoforms for the first time. The chronoform is also custom and I've got a few problems with it and I really hope somebody can help🙂
I'll try to explain.

Form: http://www.z-ware.nl/index.php?option=com_content&view=article&id=5&Itemid=5

1)I've got my own validation DIV's, but the checkbox won't work with it. It worked for a short time but now it doesn't and I don't understand why.
1.1)I want the first checkbox always be checked when you go to the contact page but it's important that all the checkboxes work with the validation DIV's. I have no idea how to accomplish that.

2)When I fill in the form and pressing the submit button, there's a nameless error in the form itself. I don't know why.

3)Before the nameless error was visable, and you'll filled in the form, a:
You are not allowed to access this page!
was visable. I have no idea why.

4)Sometimes it looks like that the upload file box must be validated. I don't want that.

I checked this forum multiple times for the problems and questions I have and I found a sollution for almost everything🙂 so I really hope somebody can provide me some clarity 😀

Anyway thanks in advance!
GreyHead 26 Aug, 2011
Hi DevDes,

I can spot a couple of things here. If we sort them out the rest might clear up or become easier to find.

a) There is a JavaScript error on the page in the anti-spam code. It's trying to disable the submit button using it's ID but the Submit input doesn't have an ID. I suggest that you add id='submit_btn' and then change the JavaScript to $('submit_btn') -- I've seen that IE doesn't respond well to the more obvious id='submit'.

b) The Checkbox validate-one-required in CFv3 neede the checkboxes to have a common parent tag - yours no longer do, but I think that you can remove some of the extra divs to get to something like this
<label>Contact via</label>
<div id="checkbox_container">
  <div id="checkbox_box">
    <input class="checkbox" id="check00" name="check0[]" type="checkbox" value="E-mail" title="Kies een optie">
    <div id="checkbox_label">
      <label for="check00" class="checkbox">E-mail</label>
    </div>
    <input class="checkbox radio validate-one-required" id="check01" name="check0[]" type="checkbox" value="Telefoon"title="Kies een optie">
    <div id="checkbox_label">
      <label for="check01" class="checkbox">Telefoon</label>
    </div>
    <input class="checkbox" id="check02" name="check0[]" type="checkbox" value="SMS" title="Kies een optie">
    <div id="checkbox_label">
      <label for="check02" class="checkbox">SMS</label>
    </div>
  </div>
</div> 

Bob
DevDes 26 Aug, 2011
Greyhead, thanks for your fast response!

I changed the button ID and also the JS. I changed the checkbox HTML to the one you provided. I think i'm sometimes a DIV'aholic, I'll search proffesional help for it😉

The first checkbox is always checked right now. After filling in the form and submit it, the following error is visable in a blank page:

You are not allowed to access this URL

What do I need to do to fix this?

Thnx!
GreyHead 27 Aug, 2011
Hi DevDes,

Please try turning the Security Token option on the form General tab off.

Bob
DevDes 27 Aug, 2011
Hi Greyhead,

I followed your advise and the You are not allowed to access this URL page is gone. Instead the blank error is visable after pressing the submit button. Firebug doesn't give any JS errors anymore and there's also no valdition message visable. Do you know what to do next?

Also I noticed that the CB login module does change shape on the chronoform page. When removing the chronoform the CB login looks ok. Maybe you have a explanation/sollution for this?

Thanks! I really appreciate the help🙂
GreyHead 27 Aug, 2011
Hi DevDes.

There's a bug the latest ChronoForms version 3.2 in the File upload code. Please see this post.

I can see a change in the button styling. I think this is from this CSS in style1.css
.button {
  border: medium none;
  margin-top: 10px;
  text-align: center;
}
You could remove this or change the styling.

Bob
DevDes 27 Aug, 2011
Now you mentioned the bug, I see there's enough about it on this forum.

Greyhead, you rock! Everything is working like it's supposed to. Thanks alot for the support. I'm going to check if I get my registration form to work properly🙂

Grtz DevDes
This topic is locked and no more replies can be posted.