This is a validation library for form data defined by jquery.formbuilder
Optionally, it can make Salesforce object from JSON by Salesforce Metadata API.
If you want to build this library, you must build and install following maven projects.
If you don't use Salesfoce, flectSoap.jar and flectSalesforce.jar are not necessary in runtime environment.
String formDefinedJson;
Map<String, String[]> formData;
FormDefinition form = FormDefinition.fromJson(formDefinedJson);
ValidationResult result = form.validate(formData);//Or you can use FormDefition#validate(String) method
// to validate form data serialized by JSON.
if (result.hasErrors()) {
List<String> errorMessages = result.getAllErrors();
//ToDo handling error
}
MIT