v2.12.5 Using IIS
Anyone able to pass $username off to a script using Pages? I see the variable when going to edit, can use it 50% of the time in the form display but never to pass it to the script.
Steps to reproduce:
- Create simple test script to take in username and write-host
param($username) write-host "username is $username" start-sleep -Seconds 5
- Create a Test Page
- Create a simple form, link the button to the script and put $username as the title, create a hidden username field with default value of $username. Ensure it allows you to see output of the script.
- Go to the page.
4a. If I refresh 10 times, 50% of the time I’ll see my domain\user there.
- Click submit
5a. At no point do I see my username pass through.