Hi,
I have a form with the following fields:
Field "Co-owner", a select_single with values Yes and No
Field "Name", a text field
Field "Address", a text field
Field "Calculated Co-owner", a text field with calculated function.
I want that if the user set Co-owner to "No", fields Name and Address assume the value "N/A", while Calculated Co-owner assume the value "The co-owner is XXX, operating at YYY".
I've created a calculated function for the field Calculated Co-owner as the following:
function dadabik_coowner_calculated($parameters_ar){
if ( $parameters_ar['Co-owner'] == 'No'){
return ("There is no co-owner");
}
else{
return ("The co-owner is ".$parameters_ar['Name'].", operating at ".$parameters_ar['Address']);
}
}
It works, but I don't know how to assign the value "N/A" to fields Name and Address if Co-owner is set to "No". If I create other calculated functions for fields Name and Address, they won't be more editable when I choose Yes in Co-owner field... Any suggestions?
Thanks,
Ale
My system info are:
You are using DaDaBIK version 9.0-Monterosso enterprise, installed on 16-08-2018 (installation code: 0), the latest version of DaDaBIK is 9.0-Monterosso released on 05-07-2018
You are runnning the last release of DaDaBIK
PHP Version: 7.2.7
mysql version: 5.7.21
Web server: Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.2.7 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.9 Perl/v5.24.0
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
I have a form with the following fields:
Field "Co-owner", a select_single with values Yes and No
Field "Name", a text field
Field "Address", a text field
Field "Calculated Co-owner", a text field with calculated function.
I want that if the user set Co-owner to "No", fields Name and Address assume the value "N/A", while Calculated Co-owner assume the value "The co-owner is XXX, operating at YYY".
I've created a calculated function for the field Calculated Co-owner as the following:
function dadabik_coowner_calculated($parameters_ar){
if ( $parameters_ar['Co-owner'] == 'No'){
return ("There is no co-owner");
}
else{
return ("The co-owner is ".$parameters_ar['Name'].", operating at ".$parameters_ar['Address']);
}
}
It works, but I don't know how to assign the value "N/A" to fields Name and Address if Co-owner is set to "No". If I create other calculated functions for fields Name and Address, they won't be more editable when I choose Yes in Co-owner field... Any suggestions?
Thanks,
Ale
My system info are:
You are using DaDaBIK version 9.0-Monterosso enterprise, installed on 16-08-2018 (installation code: 0), the latest version of DaDaBIK is 9.0-Monterosso released on 05-07-2018
You are runnning the last release of DaDaBIK
PHP Version: 7.2.7
mysql version: 5.7.21
Web server: Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.2.7 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.9 Perl/v5.24.0
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15