I am trying to add the following to the text of a field's error message so that if the field has less than 3 characters and does not contain a period/full stop it will show the error message. I have tried all sorts of different operators but simply cannot get this right. I am wondering whether an IsBlank needs to be added since the error message probably shouldn't show if there is no text entered yet? Would appreciate some help on how to fix this.
If(Len(DataCardValue2.Text)<3 && !(IsMatch( DataCardValue2.Text, ".", Contains)), "You typed a invalid value here!")