You can replicate a multi-step input form by nested UD inputs. The first UDInput will return another UDInput and the final endpoint will use variables form the first two inputs.
$Dashboard = New-UDDashboard -Title "Nested Inputs" -Content {
New-UDInput -Endpoint {
param($FirstName)
New-UDInputAction -Content {
New-UDInput -Endpoint {
param($Lastname)
New-UDInputAction -Content {
New-UDHeading -Text "$FirstName $LastName"
}
} -SubmitText "Finish"
}
} -SubmitText "Next"
}
Start-UDDashboard -Dashboard $Dashboard -Port 10001 -Force