Hi,
I have a form with a multiplier container and inside it a multifield with 4 elements.
The first element is a dropdown field (fila[__N__][tipo]) and the last one a textbox (fila[__N__][horas]).
I want to assign the number 8 in textbox if the dropdown value is "Vacaciones".
You can see on the image attached, how is configured the dropdown.
The code added to Load Javascript action is:
I have a form with a multiplier container and inside it a multifield with 4 elements.
The first element is a dropdown field (fila[__N__][tipo]) and the last one a textbox (fila[__N__][horas]).
I want to assign the number 8 in textbox if the dropdown value is "Vacaciones".
You can see on the image attached, how is configured the dropdown.
The code added to Load Javascript action is:
function setHoras() {
$('#horas__N__').val(8);
}