--- title: "Set Validations" slug: "set-validations" updated: 2023-05-18T21:26:29Z published: 2023-05-18T21:26:29Z canonical: "documentation.decisions.com/set-validations" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Set Validations | Step Details | | --- | | **Introduced in Version** | 7.0 | | **Last Modified in Version** | 7.0 | | **Location** | Form Rules | The **Set Validations** step is a component of the workflow that applies validations to specific Form controls. By incorporating this step, error messages can be implemented based on user inputs, ensuring data integrity and enhancing user experience. Pair this step with a Rule step to create a level of flexibility that allows the Form to adapt seamlessly to various scenarios, such as enforcing age restrictions by disabling interaction with certain controls, validating the format of email addresses to ensure accuracy, and implementing custom business rules for data validation. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Form Control | To apply validations, select the desired Form Control from the available options. Find the Form Controls under the Form Data category when selecting data from the Flow. | FormControlData | | Validation Issues | Set the [Break Level](https://documentation.decisions.com/docs/validations-overview-1) as Ignored, Warning, or Fatal, and type a Message to be displayed for the Validation. | List of FormControlValidationIssue | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2023-05-18_16h31_36(1).png) --- ## Common Errors ### Error changing type [---] to [---] The Value input is set as an incompatible data type for the Form Control chosen. To correct this, change the Value input to a compatible data type. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Set Validations[SetValidations] in flow [ Rule Flow]: Error Converting Value [Parent None]. Error changing type from FormControlData to Double ---> System.Exception: Error Converting Value [Parent None]. Error changing type from FormControlData to Double ---> System.InvalidOperationException: Invalid type conversion. 'Double' not assignable from 'FormControlData'. at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.ChangeType(Object value, DecisionsType targetType, Boolean convertToGenerated, Boolean isList, String errorMessage, Object[] errorParams) --- End of inner exception stack trace --- at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.ChangeType(Object value, DecisionsType targetType, Boolean convertToGenerated, Boolean isList, String errorMessage, Object[] errorParams at DecisionsFramework.Design.Flow.Mapping.InputImpl.SelectValueInputMapping.GetInputValue(IDataConsumer consumer, FlowStateData currentData, DecisionsType expectedType, Boolean expectingArray, String valueName, Object parentObject, Boolean canBeNull at DecisionsFramework.Design.Flow.FlowStep.BuildMappingData(FlowStateData data at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` --- --- Related Information Articles: [Validations Overview](https://documentation.decisions.com/docs/validations-overview-1) [Active Form Flows - Validations](https://documentation.decisions.com/docs/active-form-flows-validations)