Hi!
After reading http://fabrikar.com/forums/index.php?threads/eval-options-in-dbjoin.44967/#post-231408 and http://fabrikar.com/forums/index.ph...ble-option-inside-dropdown.45769/#post-236144 I try to disable some options in my dropdown, but it doesn't work.
with Eval populate :
or with onload Javascript :
I tried so many things, I don't remember ma name
So, "my" solution is to disable another field, with onchange Javascript, so customer cannot continue and cannot submit the Fabrik form.
Many thanks in advance for some help.
Best regards.
After reading http://fabrikar.com/forums/index.php?threads/eval-options-in-dbjoin.44967/#post-231408 and http://fabrikar.com/forums/index.ph...ble-option-inside-dropdown.45769/#post-236144 I try to disable some options in my dropdown, but it doesn't work.
with Eval populate :
PHP:
...
}else{
$option=$row->spec_date .' (COMPLET)';
$row->spec_repr_id='0';
$opt= JHTML::_('select.option', $row->spec_repr_id, $option);
$opt->disable = true;//$opt->$options['option.disable']=true;
}
...
JavaScript:
jQuery("#spec_reserv___spec_repr_id option[value=0]").attr("disabled","disabled");
I tried so many things, I don't remember ma name
So, "my" solution is to disable another field, with onchange Javascript, so customer cannot continue and cannot submit the Fabrik form.
Many thanks in advance for some help.
Best regards.