Setting a default field required
Moderators: Developer, Contributor
Setting a default field required
I would like to set the "Product version" field as required. Is it possible?
Re: Setting a default field required
Try adding these lines to your config_inc.php file. I'm not sure it will make the field required but it will show it all of the time.
# --- show product versions in create, view and update screens
# ON forces display even if none are defined
# OFF suppresses display
# AUTO suppresses the display if there are no versions defined for the project
$g_show_product_version = ON;
You may also need to set it so that the "default" view is the "advanced view" instead of the "simple view".
# --- advanced views --------------
# BOTH, SIMPLE_ONLY, ADVANCED_ONLY
$g_show_report = ADVANCED_ONLY;
$g_show_update = ADVANCED_ONLY;
$g_show_view = ADVANCED_ONLY;
You will also need to go into Manage -> Manage Projects and add versions to the project so that they can be selected in the version field.
# --- show product versions in create, view and update screens
# ON forces display even if none are defined
# OFF suppresses display
# AUTO suppresses the display if there are no versions defined for the project
$g_show_product_version = ON;
You may also need to set it so that the "default" view is the "advanced view" instead of the "simple view".
# --- advanced views --------------
# BOTH, SIMPLE_ONLY, ADVANCED_ONLY
$g_show_report = ADVANCED_ONLY;
$g_show_update = ADVANCED_ONLY;
$g_show_view = ADVANCED_ONLY;
You will also need to go into Manage -> Manage Projects and add versions to the project so that they can be selected in the version field.