Hi, I use the code below in custom_required_functions.php
If I use the function "dadabik_hide_nsd_opduwer" on a select_single_radio field, the field is correct hidden/shown.
But the "required" option does not work: if $a['required'] = true; - it is possible to save the record without selecting one of the values (and thus have a NULL in the database).
function dadabik_hide_nsd_opduwer ($params){
if ( $params['deelnemen'] <> 'Ja' or $params['type_boot'] <> 'Opduwer')
{
$a['show'] = false;
$a['required'] = false;
}
else{
$a['show'] = true;
$a['required'] = true;
}
return $a;
You are running the latest release of DaDaBIK
In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.
mysql version: 5.5.5-10.6.16-MariaDB
Web server: Apache/2
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
If I use the function "dadabik_hide_nsd_opduwer" on a select_single_radio field, the field is correct hidden/shown.
But the "required" option does not work: if $a['required'] = true; - it is possible to save the record without selecting one of the values (and thus have a NULL in the database).
function dadabik_hide_nsd_opduwer ($params){
if ( $params['deelnemen'] <> 'Ja' or $params['type_boot'] <> 'Opduwer')
{
$a['show'] = false;
$a['required'] = false;
}
else{
$a['show'] = true;
$a['required'] = true;
}
return $a;
Your current DaDaBIK version
You are using DaDaBIK version 11.12-Elba enterprise, installed on 10-12-2023 (installation code: 18828644e443ac0e33), the latest version of DaDaBIK is 11.12-Elba released on 30-11-2023You are running the latest release of DaDaBIK
In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.
System info
PHP Version: 7.4.33mysql version: 5.5.5-10.6.16-MariaDB
Web server: Apache/2
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36