prepareReturnValue
public java.lang.String prepareReturnValue(java.util.Map<java.lang.String,java.lang.String> validationResult)
Takes a map of validations and creates the json response for the bullhorn form.
If a key in the map starts with error,block or validation it's an error and will be treated as a form save blocker. The value in the
map will be used for validation message.
If a key in the map starts with returnvalue then that record will be treated as a return value to be passed back to the form. The key
will need to have the format returnvalue:nameOfField, where nameOfField will be used in the json return value to specify what field
to update. The value for the record will be the value that will populate the nameOfField.
- Parameters:
validationResult
-
- Returns:
- a json response for the bullhorn form