I read the FAQ about hiding a textarea when I checkbox is not clicked.
But I can't get it to work. The textarea stays visible and it doesn't matter if the checkbox is checked or not. And I have no idea what I'm doing wrong.
So far I did these steps in preview: (i'm using the advanced wizard)
1. Create a checkbox element with name and field id checkbox
2. Create a textarea with name and field id textarea
3. Create a submit button
At events I did 2 steps:
1. Create a load js and put the code there from the FAQ
2. Create the show html
After saving I still have the textarea visible. So what am I doing wrong?
But I can't get it to work. The textarea stays visible and it doesn't matter if the checkbox is checked or not. And I have no idea what I'm doing wrong.
So far I did these steps in preview: (i'm using the advanced wizard)
1. Create a checkbox element with name and field id checkbox
2. Create a textarea with name and field id textarea
3. Create a submit button
At events I did 2 steps:
1. Create a load js and put the code there from the FAQ
2. Create the show html
After saving I still have the textarea visible. So what am I doing wrong?
I get it to work somehow.
Don't know what I did. I was already trying for 3 hours and suddenly it worked.
So now I went a step further because I wanted multiple checkboxes and textarea's
That worked as well.
But now the last step is to have one checkbox which unlocks multiple textfields.
I tried to put the fields in a container and let the checkbox refered to the container name but I probably did something wrong because it didn't work.
Any idea how to get it worked?
Don't know what I did. I was already trying for 3 hours and suddenly it worked.
So now I went a step further because I wanted multiple checkboxes and textarea's
That worked as well.
But now the last step is to have one checkbox which unlocks multiple textfields.
I tried to put the fields in a container and let the checkbox refered to the container name but I probably did something wrong because it didn't work.
Any idea how to get it worked?
Hello I am using this Javascript code (the second).
http://www.chronoengine.com/faqs/2645-how-can-i-showhide-a-textarea-when-a-checkbox-is-clicked.html
I have a problem, how can I connect the checkboxe 3 textarea?
checkboxes['prova'] = 'testo1';
checkboxes['prova'] = 'testo2';
checkboxes['prova'] = 'testo3';
In this way does not work!
http://www.chronoengine.com/faqs/2645-how-can-i-showhide-a-textarea-when-a-checkbox-is-clicked.html
I have a problem, how can I connect the checkboxe 3 textarea?
checkboxes['prova'] = 'testo1';
checkboxes['prova'] = 'testo2';
checkboxes['prova'] = 'testo3';
In this way does not work!
Hi rosaria,
In the FAQ the checkboxes have different ids - yours all have the same id.
Bob
In the FAQ the checkboxes have different ids - yours all have the same id.
Bob
Hello GreyHead, I do the same type of form I associate more checkboxes to more textarea:
example:
checkboxe_1: textarea1, textarea2, textarea3
checkboxe_2: textarea4, textarea5, textarea6
example:
checkboxe_1: textarea1, textarea2, textarea3
checkboxe_2: textarea4, textarea5, textarea6
My show/hide textarea did not work.
Here it is:http://demo.flexdatainfo.com.br/ctarj/index.php?option=com_chronoforms&tmpl=component&chronoform=Form_teste
I am doing something wrong, but I can't find😟 . Any help?
Please, take a look how I configured.
Here it is:http://demo.flexdatainfo.com.br/ctarj/index.php?option=com_chronoforms&tmpl=component&chronoform=Form_teste
I am doing something wrong, but I can't find😟 . Any help?
Please, take a look how I configured.
This topic is locked and no more replies can be posted.
