Validating protected fields in Service Dialog


#1

Has anyone figured out a way to handle multiple field validation in a service dialog? We have a requirement to allow end-users to set the admin/root password from the Service Dialog. If we do an unprotected text field, they can confirm the password themselves, however if we do a protected dialog obviously they have no idea if there’s a typo.

The traditional solution is entering the password twice, but how can we validate with reasonable feedback other than bombing the entire Service Provision State machine and forcing them to re-enter everything.

Ideally we need a solution for Botvinnik, but if one only exists for Capablanca or beyond, we’d love to hear that as well.

Thanks,
Matt


#2

I’ve got a POC following something similar to the tenant name validation on https://pemcg.gitbooks.io/introduction-to-cloudforms-automation/content/chapter18/service_dialogs.html, but it’s very clunky.