Forums

Form Question

mitokat 09 Jun, 2008
Hi,
Sorry for the vague title... I am not quite sure what my issue is but I think that it is a simple user error in form creation but here it is.

I set up chronoforms on my test site. I downloaded the sample form and created one of my own using dreamweaver (here is where I bet the problem is!!! ) Anyways I got the code and set it up and was very happy it worked well on my site (using IE). Today I tested it using Mozilla. When I checkmark a box others get checkmarked as well.

http://flourishbouquet.com/index.php?option=com_chronocontact&Itemid=73

If you click on any of the 1 box or 1 bucket it is fine. But if you clic on the 2 or 3 it automatically checks number 1 and you have to click again to remove it.

So ... can anyone tell me what I am doing wrong?

THANKS!!!!!
GreyHead 09 Jun, 2008
Hi mitokat,

I think it's something to do with you having value="checkbox" in there, try value="1_box_gerberas" instead. Do you mean to have checkboxes where they can select more than one option - radio boxes would mean they could only select 1 OR 2 OR 3

You also appear to have page header code <head> . . . </head> and possibly <body> tags in your form code. Please remove these - Dreamweaver seems to add them in willy-nilly.

Bob
mitokat 10 Jun, 2008
Hi Bob,

Ok that was VERY helpfull, though I am still having issues.

So here is what I did.

For my first section I switched it to the radio buttons. You are right...that is exactly what I wanted as I dont want multiple check boxes. I added an option for the radio button on other with a text box next to it in case it is a diff number. I did this because when I tested I could potentially still mark 2 options. 🙂

So... so far so good right! 😉 I went to IE and tested it. My validation stopped working. Went back and checked my text form which is the one I downloaded that is yours, I did change one field to checkbox when I was "learning" how to use it... it worked yesterday... but it is not working today.

Went to Mozilla... yikes! not workign there still... the checkboxes did random checking the radio buttons only allow me to click on the very first one....

So.. what did I do yesterday in between working on this to try to see if I "broke" something with the validation. I installed the ajax pix search module http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3547/Itemid,35/ - Could that break the validation?

Ok so as you can definitely see I am still "learning" if you have any form tutorials that you know of feel free to push me in that direction!!! I have read all your FAQ and I am going through all these posts picking up "tidbits of knowledge!!!"

THANKS for any help you can give me!!!!

OH and I did remove all the header/body stuff even the CSS I had on the top of the page. Only thing left are "lables" breaks and "h1, h2 stuff"
mitokat 10 Jun, 2008
UPDATE...

Ok I fixed part of my problem. 🙂 The part having to do with validation. My new module (ajax pixsearch) the searching one also has a form inserted in it. I removed the search capability from my form page and voila it fixed my validation problem. 😉

I am still having the issue with mozilla.
GreyHead 10 Jun, 2008
Hi mitokat,

By Mozilla do you mean FireFox? If so then install the FireBug extension and see what errors show up in the console tab.

Bob
mitokat 10 Jun, 2008
Thank you Bob,

Yes that is exactly what I meant!!
I have set up firebug now and will try to figure out how it works. Their website is down (hopefully temporarily) so I can get the documentation.

You have been of great help!
GreyHead 11 Jun, 2008
Hi mitokat,

Firebug is a very nice web debugger. Probably all you need to do for this purpose is to install the extension, browse to the page, open the Firebug window - from the right hand end of the FireFox status bar. Check the Console window when the page is loaded and while you submit the form.

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