Posted by T
2015-08-13
Hello! Thank you for an amazing script. Is there any way to add a default value to one of the fields>
→ Form2DB
Posted by Tom
2015-08-19
>Is there any way to add a default value to one of the fields
Yes. You can assign a default value to XA_INIT_VALUE. To do so, open web/codelib/asc/df.fl.(table-name).inc.php. Insert a line like this to a field you want assign a default value to.
Yes. You can assign a default value to XA_INIT_VALUE. To do so, open web/codelib/asc/df.fl.(table-name).inc.php. Insert a line like this to a field you want assign a default value to.
XA_INIT_VALUE=>array( 'reg'=>'--put-default-value-here--' ),You need to replace "--put-default-value-here--" with the default value you want to use. The result should look like (assuming that the field name is 'first_name')
'first_name'=>array(
.....................
.....................
.....................
XA_INIT_VALUE=>array( 'reg'=>'--put-default-value-here--' ),
.....................
.....................
.....................
),
→ Form2DB