Buy Now
Sign in

Event's

Vipz , January 18 2016, 15:46
V
Vipz 29
January 18 2016, 15:46 #355602
Sorry my bad English , I use the translator.
And I'm noob in programming.

If you have chosen in dropdown - value (1) and clicked the submit button should automatically be sent here such form:


<form method="POST" action="URL">
<input type="hidden" name="receiver" value="Number>
<input type="hidden" name="targets" value="{name}">
<input type="hidden" name="sum" value="1" data-type="number">
<input type="hidden" name="paymentType" value="AC">
</form>


If you have chosen in dropdown - value (2) and clicked the submit button should automatically be sent here such form:


<form method="POST" action="URL">
<input type="hidden" name="receiver" value="Number>
<input type="hidden" name="targets" value="{name}">
<input type="hidden" name="sum" value="1" data-type="number">
<input type="hidden" name="Type" value="PC">
</form>


Thank you in advance for your help. I'll fix everything I insist on paying you for buy key.
GreyHead 64
January 18 2016, 16:01 #355605
 1
HI Vipz,

If you give your dropdown the name Type and set the options like this
PC=PC
AC=AC
that should do what you have posted here

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
V
Vipz 29
January 18 2016, 17:00 #355610
Please leave a comment

Maybe I have something not properly explained.

I have a basic form number 1.

If I select in dropdown (A)

And then click (Submit)

Should be triggered automatically form number 2

<form method="POST" action="URL1"> 
<input type="hidden" name="receiver" value="Number>
<input type="hidden" name="targets" value="{name}">
<input type="hidden" name="sum" value="1" data-type="number">
<input type="hidden" name="paymentType" value="AC">
</form>


If I select in dropdown (B)

And then click (Submit)

Should automatically go to the form room 3

<form method="POST" action="URL2"> 
<input type="hidden" name="receiver" value="Number>
<input type="hidden" name="targets" value="{name}">
<input type="hidden" name="sum" value="1" data-type="number">
<input type="hidden" name="Type" value="PC">
</form>
GreyHead 64
January 18 2016, 20:14 #355613
HI Vipz,

You could do that in a Custom Code action in the form ON Submit event
<?php
switch ( $form->data['dropdown_name'] ) {
case 'A':
$url = 'this url';
$type = 'AC';
break;
case 'B':
$url = 'that url';
$type = 'PC';
break;
}
?>
<form method="POST" action="<?php echo $url; ?>">
<input type="hidden" name="receiver" value="Number>
<input type="hidden" name="targets" value="{name}">
<input type="hidden" name="sum" value="1" data-type="number">
<input type="hidden" name="Type" value="<?php echo $type; ?>">
</form>

But your form has no submit button so you would need to auto submit.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
V
Vipz 29
January 18 2016, 22:24 #355621
Thank you.
But I can't do it.

Can you ?

If you choose text 1 in the dropdown , and clicked send to work , all will go then and work the event 1-1.

If you choose 2 in the dropdown , and clicked send to work , all will go then and work event 1-2.

See the image

Dropdown


Events
V
Vipz 29
January 18 2016, 23:25 #355623