Skip to content

Form Sizes

The New-SADScriptoFormProject function provides three intial form size options (by height) to choose from when creating a new ScriptoForm project. These sizes are:

SizeHeightWidth
Small210px330px
Medium260px330px
Large310px330px

The form size is selected by using the -Size parameter when calling the function. The default form size is Medium.

PowerShell
New-SADScriptoFormProject -Size Small -DestinationPath D:\Demo -Name Show-DemoForm

The above example will create a new ScriptoForm project with the form size set to Small.

These sizes can be adjusted as needed by modifying the following variables in the $ShowFormMain script block of the ScriptoForm PowerShell script file after it has been deployed:

$ShowFormMain
$FormHeight = xxx
$FormWidth = yyy

Replace xxx and yyy with the desired height and width values, respectively. The name of this file will vary based on the -Name parameter argument your provided with the New-SADScriptoFormProject function.