Hi everyone,
I'm working on an Interactive Automation Script (IAS) to provision elements, and I’m running into an issue with the ValidationText
and ValidationState
properties. I expect the text box to indicate an error (e.g., highlight in red, display error text under textbox) when certain validation conditions fail, but that’s not happening.
Here’s the snippet:
if (NewViewCheckBox.IsChecked)
{
if (string.IsNullOrEmpty(ViewTextBox.Text))
{
engine.Log("validation failed: View input string is null or empty");
ViewTextBox.ValidationText = "Please Enter a View Name.";
ViewTextBox.ValidationState = UIValidationState.Invalid;
isValid = false;
}
However, even though the validation logic executes (as seen in the logs), the dialog does not reflect the error visually:
- The
ValidationText
does not appear. - The text box does not turn red or indicate an error.
I’ve attached screenshots of my UI, logs, and code for context. Any help in understanding why the validation feedback isn’t showing would be greatly appreciated!
Hi Sofia,
This only works on the web version of the interactive automation scripts.
As a test, can you create a low-code app and trigger the interactive script there?