Skip to content

Server side formdata validation libraries. (Work with jquery.formbuilder plugin)

License

Notifications You must be signed in to change notification settings

Derevyaa/form-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

form-validation

Overview

This is a validation library for form data defined by jquery.formbuilder

Optionally, it can make Salesforce object from JSON by Salesforce Metadata API.

Dependencies

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.

Usage

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
}

License

MIT

About

Server side formdata validation libraries. (Work with jquery.formbuilder plugin)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%