FORMfields


FORMfields.FfFormValidator

Class FfFormValidator

FfFormValidator

public class FfFormValidator

FfFormValidator is a callback class that is used to implement form validation. Idea contributed by Robert Bates.

Since:
FORMfields v3.0

Method Summary
boolean

checkValues(FfForm ffForm)

Sets the form validator, a callback class that is used to implement form validation.

Method Detail

checkValues

public boolean checkValues(FfForm ffForm)

Sets the form validator, a callback class that is used to implement form validation. If an error is detected, FfForm::setFormError() or the appropriate FormField::setError() method should be called.

Parameters:
ffForm - the ffForm to validate and process
Returns:
false if a field error is detected
Since:
FORMfields v3.0

FORMfields