Hi all, i'm trying to validate if text field input is empty using validation tab builded in Thingworx (v 9.3.4). Unfortunatelly, it doesn't work at all on mashup load. I mean that even if i select 'Invalid' ValidationState there is no changes on mashup, it looks like the input was valid. It starts to work only after lost focus on text field input and, after that, it looks to work fine but i see no way to trigger that focus lost event without clicking on mashup.
Hello @MW_10212619 , Text filed validation configured in validation tab is triggered when lost focus on text field. It's unable to trigger validation by mashup load event and bind mashup load event to FocusLost event of text field.
Hello @MW_10212619 ,
if you really want a validation before the status "lost focus", I recommend you to assign a custom CSS class using an expression.
Here is an Example:
//Expression
Output = content ? "" : "myCustomClass";
//CSS
.myCustomClass {
border: 1px red solid !important;
}
Best regards
Marc