For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDFormValidationResult

Creates a new validation result.

Synopsis

Creates a new validation result.

Syntax

New-UDFormValidationResult [-Valid] [[-ValidationError] <String>] [[-Context] <Hashtable>] [-DisablePrevious] [[-ActiveStep] <Int32>] [<CommonParameters>]

Description

Creates a new validation result. This cmdlet should return its value from the OnValidate script block parameter on New-UDForm or New-UDStepper.

Parameters

-ValidationError

An error to display if the is not valid.

Required?                    false
Position?                    1
Default value                Form is invalid.
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Context

Update the context based on validation. This is only used for New-UDStepper.

-ActiveStep

Sets the active step. This is only used for New-UDStepper.

Last updated

Was this helpful?