VMware Cloud Community
hoon0715
Contributor
Contributor

Why can't I see a validation message?

Hello !

I set up to enter "Machine Name" when deploying the VM.

By default, over 15 characters, the VM deployment failed and I set it to display error message to the user when they type 2~15 characters.

However, only the Red " ! " mark comes out.

It doesn't display a validation message!

What am I missing?

Kindly advice to me.

커뮤질문1-1.png

커뮤질문1-22.png

0 Kudos
3 Replies
stevedrummond
Hot Shot
Hot Shot

You haven't entered a regular expression for it to compare against, you only entered a validation message.

To view an error message you need to hover over the exclamation mark.

If you prefer a giant banner popping up at the top when they hit submit you will need to use Orchestrator ​External Validation​.

0 Kudos
hoon0715
Contributor
Contributor

Thank you for your answer!

Currently, it can't print a message hover over a red exclamation!

In my case, how can I use the regular expression?

" 2 > Machine name characters > 15 "

Thank you !

0 Kudos
stevedrummond
Hot Shot
Hot Shot

You need to write a regular expression that validates an entry with whatever restrictions you want. If you're not sure how RegEx works or how to write it you should consider whether you should be using it.

To get you started however this expression will at least validate your length requirements, but it will allow people to enter invalid computer name characters.

^.{2,15}$

0 Kudos