Dear all
I confused when I try to save into different table with conditional case. I have a multi-choice dropdown that have an event on each value. and I have 4 textbox with different name.
If dropdown value 1 then show parent textbox1
If dropdown value 2 then show parent textbox2
If dropdown value 3 then show parent textbox3
If dropdown value 4 then show parent textbox4
On submit event, I'm using event switcher with condition :
So, because I'm using multi-choice, the textbox can show more than one, I have no idea with this condition. I hope you understand my question and can give me a clue to solve this. Thank you
I confused when I try to save into different table with conditional case. I have a multi-choice dropdown that have an event on each value. and I have 4 textbox with different name.
If dropdown value 1 then show parent textbox1
If dropdown value 2 then show parent textbox2
If dropdown value 3 then show parent textbox3
If dropdown value 4 then show parent textbox4
On submit event, I'm using event switcher with condition :
<?php
if($form->data("dropdown") == 1){
return "first";
}
if($form->data("dropdown") == 2){
return "second";
}
if($form->data("dropdown") == 3){
return "third";
}
else{
return "fourth"
}
So, because I'm using multi-choice, the textbox can show more than one, I have no idea with this condition. I hope you understand my question and can give me a clue to solve this. Thank you