Modals appearing on other peoples screens...?

Ok. I’m having a hard time reproducing this. Can either of you turn on logging and send it my way?


i was able to reproduce it and have a log file below are the steps id did

1- login to IIS site in 2 different browsers (chrome & firefox ) with same creds
2-opened the modal from chrome nothing shows up but when i went to firefox it was opened there and same test vice versa.

When you say login, do you login via IIS Single Sign on or Forms auth?

i have iis baseic auth turned on so i used my ad account.

also in a separate note i have 1 ad account that is being used by the users in my environment to access ud since they dont have their own ad logins created in ad so in order to authenticate to the IIS server they all use the same AD functional account.

i dont know if this is an issue for UD with modal shows on other users screen.

Sorry man late on the replies…Ok so this only happens to one user at my place…and this user works part-time so not in today. Or yesterday. Not sure if they are in tomorrow either? Anyways…I said to this one particular user as they do not have a thin client just use your browser before connecting to the remote desktop work and authenticating yourself on domain.
So was thinking this was causing the problem for this user, and was going to ask them to only use it once authenticated against the remote desktop login…I have mine UD setup to authenticate against active directory…but the PC isn’t joined to domain if you get me?
So will force user to use inside remote desktop and see if the issue still happens. If so I will gather logs


how do you want me to send the log file , it about 14mb in size and i dont know if i can post it here

You can use Firefox Send:

1 Like

was the log file helpful, also i just confirmed with the user who got the modal on his screen when he was on a different page that he was logged in with his own AD account, so the issue seems to not only affecting the users who share same AD account but it also affects others

I don’t see anything in the log that explains this. Can you please provide a small code sample of the modal in question? Is it opened from a button or something?

This is what I was doing. I have IIS configured on Windows 10 with Windows auth. I’m logging in as the same user. I haven’t hit it yet.

  New-UDCard -Title "CheckBox Testing" -Content {
        New-UDInput -Title "Checkbox Input Testing" -Id "CheckboxForm" -Content{
            New-UDInputField -Type 'textbox' -Name 'name' -Placeholder 'Enter Your Name'
            New-UDInputField -Type 'checkbox' -Name 'check' -Placeholder 'Yes?'
        } -Endpoint {
            param($name, $check)

            Show-UDModal -Content {
                New-UDButton -OnClick {
                    Show-UDModal -Content {

            $Session:Value = $Name

            if ($check){
                New-UDInputAction -Toast "Yes, $Name" -ClearInput
            else {
                New-UDInputAction -Toast "No, $Name" -ClearInput
 Upload      = New-UDTooltip -Type info -Effect float -Place top -TooltipContent { "Upload files!" } -Content {

                New-UDButton -BackgroundColor "#26a69a" -Text "Upload" -Icon upload -OnClick {

                    Show-UDModal -Content {

                        New-UDInput -Title "File Upload" -Content {

                            New-UDInputField -Name 'file' -Type binaryFile -Placeholder 'Upload'

                        } -Endpoint {

                            $FullPath = Join-Path $TaskPath -ChildPath $File.FileName
                            $fileStream = [IO.File]::Create($FullPath) 
                            $stream = $File.OpenReadStream()

                            Show-UDToast -Message "File Uploaded!" -MessageColor Green -Title $File.FileName -Position topCenter -Duration 2500

                            Start-Sleep -Seconds 3


Here is my copy @adam

New-UDCard -Title "Select Supplier" -Content {
    New-UDInput -Endpoint {
        # Find all matching customers
        if (-Not(Test-Path $Root\$User)) { mkdir $Root\$User }
        $qCustomer = @"
 SELECT [SupplierID]
FROM [PO].[dbo].[POSupplier]
 WHERE SupplierName LIKE '%$($SupplierName)%'
        $Customer = Invoke-Sqlcmd2 -ServerInstance SQLSERVER-NAME -Database PO -Query $qCustomer -Username 'xxxx' -Password 'xxxx'
        # Output a new modal based on that info
        New-UDInputAction -Content @(
            Show-UDModal -Content {
                New-UDGrid -Title "Customer Results" -Headers @("SupplierID", "SupplierName", "Select") -Properties @("SupplierID", "SupplierName", "Select") -Endpoint {
                    $Customer | % {
                        New-Object -TypeName PSCustomObject -Property @{
                            "SupplierID"   = $_.SupplierID
                            "SupplierName" = $_.SupplierName
                            "Select"       = New-UDButton -Text "Select" -Icon user_friends -OnClick {
                                "$($_.SupplierID)" | Out-file $Root\$User\Supplier.txt
                                Show-UDToast -Message "Supplier $($_.SupplierName) has been recorded" -Duration 4000
                    } | Out-UDGridData

Thanks! I can reproduce it now. When I added in Show-UDToast it pretty much just started happening all the time.

1 Like

Great hopefully its a quick and easy fix.:slight_smile:

just an FYI i have replaced show-udtoast with New-UDInputAction -Toast as per your provided example and cleared the cache and recycled appPool and re test and the issue in my case still remain the same.

logging in with same AD account on 2 different browser still show the modal on the other browser screen.

I found this issue. Idk why I couldnt reproduce it before cuz its a pretty big bug. I will get it in tonight’s nightly build

1 Like

Thank you Adam. Looking forward to test the fix

Are you still on track adding the fix to tonight release?

Yep. Just merged it in. Will be building and posted shortly.