com.smartgwt.client.callbacks

## Interface ValidatorConditionCallback

-     public interface ValidatorConditionCallback

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `execute(DataSourceField item, Validator validator, java.lang.Object value, java.util.Map record, java.util.Map additionalContext)` `Callback` required for the property `Validator.condition` and ValidatorDefinition.condition.

- - ### Method Detail

    - #### execute

          boolean execute(DataSourceField item,
                          Validator validator,
                          java.lang.Object value,
                          java.util.Map record,
                          java.util.Map additionalContext)

      `Callback` required for the property `Validator.condition` and ValidatorDefinition.condition.
      Parameters:
        `item` - FormItem, DataSourceField or ListGridField on which this validator was declared. NOTE: FormItem will not be available during a save performed without a form (eg programmatic save) or if the field is not available in the form.
        `validator` - Validator declaration from eg `DataSourceField.validators`.
        `value` - value to validate
        `record` - Field values for record being validated.
        `additionalContext` - Object containing extra context which may be useful to the condition function. Contains the following properties:
        component: the DynamicForm or ListGrid being validated
        rowNum: the row number of the cell being validated (only if component is a ListGrid)
        colNum: the column number of the cell being validated (only if component is a ListGrid)
      Returns:
        whether the value passed validation. True for passed, false for fail.