How do I make the product, category, and sub-product or sub-category fields required when submitting an Ask a Question request or when saving an incident?
Product/Category, Incident Inbound, Ask a Question form, Customer Portal Page Set November 2009 and later releases
On a new Oracle B2C Service site, you can configure the Ask a Question page so that the product, sub-product, category, and sub-category fields are all required when submitting an Ask a Question request or when saving an incident from the administration pages.
Note: You can have up to 6 levels of products or categories. The default configuration does not require products and categories.
In CP, in the ask.php file, the ProductCategoryInput widget is included for both products and categories. Within the widget, the required_lvl attribute indicates the number of levels the user must select before the value can be submitted. The default ask.php file is configured to not require products or categories.
- <rn:widget path="standard/input/ProductCategoryInput" data_type="products" required_lvl="2" />
- <rn:widget path="standard/input/ProductCategoryInput" data_type="categories" label_input="Category" required_lvl="2" />
Please note that the data_type attribute's functionality has been integrated into the "name" attribute in version 2.0 of the ProductCategoryInput widget. If you are using this version of the widget, you will not see the data_type attribute.
Please refer to the 'Setting the required levels of products and categories' section in online documentation for the version your site is currently running. To access Oracle B2C Service manuals and documentation online, refer to the Documentation for Oracle B2C Service Products.