PROJECT DESCRIPTION
This example demonstrates how to make the Room resource required in the Custom Advanced form.
Generally, the validation for the resources ComboBox is not fired when saving the form because the ComboBox validation group is not the same as the one of the Save button. The validators for the subject and dates have their ValidationGroup properties set in the InitializeStrings() method of the AdvancedFormCS.ascx.cs/AdvancedFormVB.ascx.vb file.
One option to overcome this issue is setting the ValidationGroup property in the InitializeStrings() method as follows:
AdvancedFormCS.ascx/AdvancedFormVB.ascx file:
ResourceContolCS.ascx/ResourceContolVB.ascx file:
AdvancedFormCS.ascx.cs file:
AdvancedFormVB.ascx.vb file:
Another option is setting it directly in the markup: