IAValidationControl

Intelligent Advisor Flows was only made available to select customers, and will not be made Generally Available.

An IAValidationControl represents a validation message that should be displayed if a specified condition has not been met.

If the control is visible, the error conditions have been met and should be displayed.

function Validation({control}: ControlProps<IAValidationControl>) {
    return <div key={control.id} class="alert">{control.text}</div>
}

If the control is visible, the error conditions have been met and should be displayed.

function Validation({control}: ControlProps<IAValidationControl>) {
    if(control.isVisible)
        return <div key={control.id} hidden={ class="alert">{control.text}</div>
    return null;
}