Hello, Bob
I have two dropdown wherein the second (ajax by event) work dependence on the first.
When the form loads the second box has nothing and when I select an option in the first dropdown loads a listing on 2nd under certain conditions. So far so good, works very well.
However, I want use the values of these two dropdowns to pass these values to another form. The value of the first (which does not work with ajax) goes correctly, but the second (which works with ajax) values do not pass.
Debugging:
Array
(
[chronoform] => marcas_registo_escolher
[event] => submit
[format] => html
[Itemid] => 993
[option] => com_chronoforms
[view] => form
[escolha_bloco] => Provas Combinadas
[escolher_epoca] => 2013_2014 // value of fist dropdown
[escolher_atleta] => /// value of the second dropdown is empty
[input_submit_201] => Escolher
[b3c9748c93559fa7a8f5742909de76cd] => 1
)
What can be happening?
Thanks
António Graça
I have two dropdown wherein the second (ajax by event) work dependence on the first.
When the form loads the second box has nothing and when I select an option in the first dropdown loads a listing on 2nd under certain conditions. So far so good, works very well.
However, I want use the values of these two dropdowns to pass these values to another form. The value of the first (which does not work with ajax) goes correctly, but the second (which works with ajax) values do not pass.
<span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">[</span><span class="syntaxdefault">i</span><span class="syntaxkeyword">]</span><span class="syntaxcomment">///data of firt form[/i]<br /></span><span class="syntaxdefault">$epoca_escolha</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">$form</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">data</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'escolher_epoca'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> </span><span class="syntaxcomment">/// values of firt dropdown<br /></span><span class="syntaxdefault">$atleta_escolha</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">$form</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">data</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'escolher_atleta'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> </span><span class="syntaxcomment">///values of firt dropdown<br /><br /></span><span class="syntaxdefault">echo </span><span class="syntaxstring">'Teste_epoca:'</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">$epoca_escolha</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">i</span><span class="syntaxkeyword">]</span><span class="syntaxcomment">/// display values[/i]<br /></span><span class="syntaxdefault">echo </span><span class="syntaxstring">'Teste_atleta:'</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">$atleta_escolha</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">i</span><span class="syntaxkeyword">]</span><span class="syntaxcomment">/// not display values[/i]<br /><br /></span><span class="syntaxkeyword">[</span><span class="syntaxdefault">i</span><span class="syntaxkeyword">]</span><span class="syntaxcomment">///data to fill the second form[/i]<br /></span><span class="syntaxdefault">$form</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">data</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'nome_marcas'</span><span class="syntaxkeyword">]=</span><span class="syntaxdefault">$atleta_escolha</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$form</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">data</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'epoca_marcas'</span><span class="syntaxkeyword">]=</span><span class="syntaxdefault">$epoca_escolha</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">?></span>
Debugging:
Array
(
[chronoform] => marcas_registo_escolher
[event] => submit
[format] => html
[Itemid] => 993
[option] => com_chronoforms
[view] => form
[escolha_bloco] => Provas Combinadas
[escolher_epoca] => 2013_2014 // value of fist dropdown
[escolher_atleta] => /// value of the second dropdown is empty
[input_submit_201] => Escolher
[b3c9748c93559fa7a8f5742909de76cd] => 1
)
What can be happening?
Thanks
António Graça