Controls

When selecting the Controls tab in the Toolbox menu, a list of controls are displayed which can be used to design the View or Form. To apply formatting and styling on a control, see the Style Builder. Each control can have it's own format and style such as applying percentage or decimal formatting on a control. All controls are available on View level and where relevant on Form level.

The following types of controls are available:

  • By default, users are not able to upload or download files with the File Attachment control, Image Attachment control or Picture control when using a Form configured for Anonymous Access. Configuration settings are available that allow users to upload and download files using an Anonymous Access Form.
    You should carefully consider and evaluate the impact of allowing file uploads and downloads with Anonymous Access Forms, since doing so may be considered a security vulnerability. User Credentials and Authentication are not required for Anonymous Access Forms and therefore any files uploaded or downloaded with such Forms could be performed by anyone that can access the Form, without having to provide credentials first.
    The setting to allow file uploads and downloads on Anonymous Access Forms can be added to the web.config files for the SmartForms websites, located at the following directories respectively:
    [Install Directory]\K2 blackpearl\K2 smartforms Designer
    [Install Directory]\K2 blackpearl\K2 smartforms Runtime

    Add the following setting to the <appSettings> section of the configuration files listed above:
    <add key="Forms.Controls.File.AllowAnonymousAccess" value="true" /> (Applicable to the File Attachment control)
    <add key="Forms.Controls.Image.AllowAnonymousAccess" value="true" /> (Applicable to the Picture and Image Attachment controls)

    The value should be set to true to allow the controls to function correctly when accessed through Anonymous Access Forms. If this setting is not added or set to false, the controls will not work on Anonymous Access Forms: Errors will occur when uploading or downloading files and image thumbnails may not display. Note that this setting applies to the site as a whole and will apply to all Anonymous Access Forms. It is not possible to configure security for these controls for individual Anonymous Access Forms.
  • Please note that when using a validation Pattern on a control, a Rule should be added that will execute the "The Form passes validation" Rule Condition in order to execute the Pattern. The Condition needs to be configured in order to specify the controls on which validation will be executed. The validation will only be executed at runtime when this Rule is called. See the Using a Validation Pattern and Rule Condition example.
  • Styles and Conditional Styles can be applied to all controls except the table control. Styles applied to a certain control will change the display value of that control to the specific format specified, and Conditional Styles are set to a specific control which will fire when a certain condition validates to TRUE

How to use rules to change the edit state of View and Form controls and tables