Thanks for the response. I tried the below:
New-UDTextbox -Label "Drive 3 Size" -Id "Drive3Size" -Mask @('^([0-9]{1,4})$')
but this just set the element value to ‘^([0-9]{1,4})$’. In reading the docs, it says you have to use JavaScript syntax and start/end each regex with ‘/\d/’, so I tried:
... -Mask @('//^([0-9]{1,4})$//')
but this did not work either. Thus far, the closest I have come is this:
...-Mask @('/\d/', '/\d/', '/\d/', '/\d/')
but this creates the column effect. Perhaps @adam will wander by and have a thought.