poshprotools icon indicating copy to clipboard operation
poshprotools copied to clipboard

[Bug] Tabbing through a 'New-UDInputField' -Type 'select' results in a $null variable

Open ArtisanByteCrafter opened this issue 7 years ago • 0 comments

Steps to Reproduce:

  1. Create 3 New-UDInput Fields with a select in the middle:
New-UDInputField -Type 'textbox' -Name 'Email' -Placeholder 'Email'
New-UDInputField -Type 'select' -Name 'IssueType' -Placeholder 'Choose A Number' -Values @("One", "Two", "Three")
New-UDInputField -Type 'textbox' -Name 'AltEmail' -Placeholder 'Alternate Email (Optional)'
  1. In the Input Form, Simply use 'Tab' to navigate through the select form. It will (correctly) retain the first value in the GUI, however, in the -Endpoint, variable $IssueType is $null, whereas it should have a value of "One"

Example: I hit 'Tab' through the 'Account Access' dropdown, assuming it kept the value 'Account Access', but it did not.

tab_issue

ArtisanByteCrafter avatar Dec 09 '17 04:12 ArtisanByteCrafter