xowiki::FormPage instproc combine_data_and_form_field_default (public)

 <instance of xowiki::FormPage[i]> combine_data_and_form_field_default \
    is_new form_field data_value

Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-www-procs.tcl

Combine the value of the form field (e.g. determined by the default) with the value in the instance attributes. This function decides, whether it should honor the data value or the form field value for e.g. rendering forms.

Parameters:
is_new (required)
is this a new entry?
form_field (required)
object id of the form field
data_value (required)
the data from the instance attributes.

Testcases:
create_form_with_form_instance
[ show source ]
Show another procedure: