Apologies first off, I looked out on Github but there are now so many repos I wasn’t sure where to post current issues (love the Chuck Norris Jokes repo).
I ran into this issue today after upgrading to 3.2.6. I don’t believe it was an issue in the version I had installed before (3.2.0) but I could very well be wrong on that (will be checking tonight). It appears that the -RowsMax parameter is being ignored in a multiline UDTextBox. Below is a quick reproducer.
Just using this param on 4.1.5 and I’m wondering if there’s a regression here? or if I’m maybe misunderstanding what the -maxrows param does? I’m wondering if I’m mistaking rows for rows the component takes vs rows inside the textbox and if there’s an alternative way to restrict/limit the input?
That makes more sense, it’s just my bad interpretation
I’ve actually managed to add a limit using the -onvalidate parameter:
-OnValidate {
if ($EventData.Length -ge 2000){
New-UDValidationResult -ValidationError 'You have exceeded the maximum characters for this field (2000).'
}
}