New-UDInputField securetextbox?


#1

I was wondering if there was a way to do a textbox for a UDInput but have it be secured (ie. just show **** for the values you enter?)

Sample code below, I’d obviously like to have something obfuscated for the password line.

$VMwareCard =  New-UDInput -Title "VMWare Info" -Content {
                New-UDInputField -type textbox -Name UserName -Placeholder "Username"
                New-UDInputField -type textbox  -Name Password -Placeholder "Password"
                New-UDInputField -type textbox -Name ClusterName -Placeholder "vCenterName"

#2

There is the InputField type Passowrd:

    New-UDInput -Title "Login Form" -Id "Form" -Content {
      New-UDInputField -Type 'textbox' -Name 'Username' -Placeholder 'User'
      New-UDInputField -Type 'password' -Name 'password' -Placeholder 'Password'
    }

#3

Haha, thanks! I could have sworn I looked at all of the types and didn’t see that but I was looking for securestring or securetext so I probably skimmed right over it.

Thanks a lot!