Code Fix: The Auto-Complete control does not use strict validation

  • 16 February 2021
  • 0 replies
  • 91 views

Badge +9
 

Code Fix: The Auto-Complete control does not use strict validation

KB002109

PRODUCT
K2 Five 5.0
K2 Five (5.0) Fix Pack 1
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Issue Description

The Auto-Complete control does not use strict validation and allows you to insert a value that does not exist from the list of available values. Functionality has been added to configure the behavior of the control to either use strict validation or allow a user to enter a non-existing value. This can be done by adding a key to the K2 smartforms Designer and Runtime web.config files, see the considerations section for steps on how to add or use the key.

 

 

Resolution

  1. Ensure you have K2 Five installed.
  2. Get the K2 Five FP1 from Regional Support.
  3. Install the K2 Five FP1 to apply the fix.
  4. Clear the browser cache.

 

 

Considerations

To use strict validation with the Auto-Complete control, follow the steps below after installing K2 Five FP1:

  1. Browse to the following location in the SmartForms design time and runtime sites:
    1. [INSTALLDIR]K2 smartforms Designer
    2. [INSTALLDIR]K2 smartforms Runtime.
  2. Edit the web.config files.
  3. Add the following key under the App Settings section in each web config:

 

<add key="ControlPack.AutoComplete.KeyStrictValidation" value="true" />
If this key is not added to the Auto-Complete control the control will continue to behave without strict validation. When the key is added and the value is set to false, the control will also behave without strict validation. When using Live Search, strict validation is not supported.

 

 


0 replies

Be the first to reply!

Reply