Restrict User Input
Property validation allows you to control the values that can be saved for a property. Property validation cannot prevent users from entering incorrect values in all cases, but it can apply rules to what the user enters and inform the user of incorrect input. You can apply several types of validation to a property, either individually or in combination:
- Required input
- Selection from a list of approved values
- Input evaluation
Each of the validation options is described in the following procedure.
To restrict user input:
- In Configurator, expand Property Sets in the configuration tree to display the property sets.
- Expand the property set that contains the property for which you want to configure validation. The names of the properties currently in the selected property set appear.
-
Select the desired property in the configuration tree. The property’s property pages appear in the right pane.
Note:The Enable for scripting option must be selected and VBScript name must be complete for the Validation and Assignment pages to be active.
- Click the Validation tab. The property’s validation options appear.
- Click the Edit button to edit the property.
- Click options or type values using the descriptions in the following table.
- Click OK to save your changes.
Option | Description |
---|---|
Input Required |
Select this option to require user input before changes to the property page can be saved. Select either Always or This expression must be True and click the Meridian Enterprise Script Editor button to build a VBScript expression that will be evaluated to determine when the element is visible. For information on using VBScript for configuration expressions including their limitations, see the Accruent Meridian Enterprise VBScript API Reference. Do not use this option on a property that may be on a hidden page. |
Select a value from |
Select this option to require the user to select from a list of approved values:
|
Apply Input Restrictions |
Select this option to limit the range of values a user may input:
|