Forums

disabling input using java

Kriss 06 May, 2008
I have created a order form with multiple columns. http://www.planetearthfiber.com/index.php?option=com_chronocontact&Itemid=63 I would like to disable and hide some of the fields.

I am using the following java script:
document.getElementById(sequin_blush).disabled=true;
document.getElementById('blush').style.visibility='hide';


blush and sequin_blush are names of input objects.
TIA Kriss B)
Max_admin 06 May, 2008
So whats the problem then ?🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Kriss 06 May, 2008
It is not hidden nor is disabled.
GreyHead 06 May, 2008
Hi Kriss,

It looks as though your form is trying to load as second copy of validation.js from a bad location.

Do you have an entry in your form or your form javascript that is doing this?

Bob

PS There's also a FireFox session store error in the JS console but that may just be me.
Kriss 07 May, 2008
Yes I do. I eliminated the line in the html. I also found a typo so I now am using these lines in the form java script:

document.getElementById('sequin_blush').disabled='true';
document.getElementById('blush').style.visibility='hide';

The elements still appear on the form.
This topic is locked and no more replies can be posted.