When i add button to the object it works great but when i add input textbox it edit the last row always
any one know how to make the inputbox aware of the $_ (current row)
New-UDTable -Title "" -Headers ("Name" , "User Name","Title", "Employee Number","IPphone","Change IPphone") -Endpoint { Get-ADUser -Filter * -Properties displayname,samaccountname,title,sapid,IPphone -ResultSetSize 30 | Where {$_.sapid -ne $null -and $_.title -ne $null}| foreach{ [PSCustomObject]@{ Name =$_.displayname UserName=$_.Samaccountname Title=$_.title EmpID=$_.sapid IPphone =$_.IPphone Change = New-UDInput -Title "" -Id "Form" -Content { New-UDInputField -Type 'textbox' -Name 'IpPhone' -Placeholder 'IpPhone' } -Endpoint { param($IpPhone) if ($IpPhone -ne $null){SET-ADUSER $_ -replace @{ ipPhone = $IpPhone } } } } }| Out-UDTableData -Property ("Name","UserName","Title","EmpID","IPphone","Change")} -AutoRefresh -RefreshInterval 10