- 18 May 2023
- 1 Minute to read
- Print
- DarkLight
Set Validations
- Updated on 18 May 2023
- 1 Minute to read
- Print
- DarkLight
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 as Ignored, Warning, or Fatal, and type a Message to be displayed for the Validation. | List of FormControlValidationIssue |
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:
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 ---
Articles:
Validations Overview
Active Form Flows - Validations