How to add a dynamic form

You can modify the standard behavior of a form by configuring it to respond to events.

Some of the things you can do by creating a dynamic form are:

  • Add and remove fields.
  • Change field contents (for example, load the contents of a list field from a database).
  • Change form scan settings.
  • Validate field contents before the document is scanned into the server.
  1. Open the Samsung Smart UX properties dialog box if it is not open already.
    To do this, either double-click the Samsung Smart UX capture icon in a task or right-click the icon and click Properties on the shortcut menu.
  2. Expand a group or menu, click the form you want to edit, and then click Edit on the menu bar.
    To create a new form, click the group or menu and then click Add Form. See How to add a basic form.
  3. In the Dynamic Form options on the General tab, select the Enable Dynamic Form check box.
  4. In the Script Path box, enter the path to the VB.NET or C# script that contains the code to respond to form and field events.
    To Do this
    Use an existing script. Click the browse button (...).
    Edit a script Click the Edit Script Code button to open a script editor window.

    For details about the script editor and the object model used to respond to create and handle events, click the help button Help button in the script editor to view the Scripting Guide.

  5. Select check boxes next to form events that must be responded to.
    Select check box To
    Form is loaded Raises an event every time the user enters the form.
    Form is submitted Raises an event every time the user presses Scan in the form.
  6. Select the Run as device logged in user check box if you need the script to run under the authentication context of the logged on user.
    This option is only available if the group requires authentication and the configured authentication mode is Windows.
    CAUTION:
    Whenever possible, specify user names and passwords in your script. Use this option only in cases where you need to access a system that requires explicit identification. Use available .Net technologies such as encrypting to hide the passwords from view when editing the script.