Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Description

Collected values can of course be validated during posting, but sometimes you want the response to to instant.

Collector Step can be Online or Offline -validated. That is confirming the input is valid.


During the registration -  as opposed to during posting (always online).


Default behavior for a "collector step" is Offline validation, unless onlineValidation has been specifically implemented for the step.

When Offline simple field validation can be carried out using the  validationWarningType attribute.


How to enable


Add the validationWarningType attribute to the relevant Workflow element.


The options are:

  • None
    • Allow the user to enter a different value than the one suggested.

  • Warn
    • Warn the user if an other value than the suggested is entered. Allowing the user to change it by accepting the prompt.

  • Block
    • Do not allow the user to enter a different value than the suggested value.

Limitations

  • No connection to backend for advanced logic, like Online validation offers.

See also

The Standard workflow collector steps 

Example: Set Lot No. validation to "Warn" 


In the example below, we set the Lot No. validation to "Warn" instead of default Block.

Meaning the user will be Warned, but not blocked from entering a different Lot No.


Modify the application.cfg file


Find and change the following line as described below.


<add id="32" name="LotNumber"inputType="Text" header="@{RegistrationCollectorLotNumberHeader}" label="'{LotNumber}'" helpLabel="@{RegistrationCollectorLotNumberHelpLabel}" eanAi="10" 
optional="false" primaryInputMethod="Scan" defaultValue="{LotNumber}" validationWarningType="Warn"/>

Note how the "validationWarningType" attribute is set to "Warn".

  • No labels