getValidationErrorMessage

fun getValidationErrorMessage(context: Context, questionnaireViewItem: QuestionnaireViewItem, validationResult: ValidationResult): String?

Returns the validation error message. If Questionnaire.QuestionnaireItemComponent.required is true, the error message starts with Required text and the rest of the error message is placed on the next line.