diff --git a/src/constants/Constants.js b/src/constants/Constants.js index 75ae69b5..4f7c15e3 100644 --- a/src/constants/Constants.js +++ b/src/constants/Constants.js @@ -111,14 +111,8 @@ export default class Constants { "http://onto.fel.cvut.cz/ontologies/form/negative-condition"; static REQUIRES_ANSWER = "http://onto.fel.cvut.cz/ontologies/form/requires-answer"; - static REQUIRES_ANSWER_DESCRIPTION_IF = - "http://onto.fel.cvut.cz/ontologies/form/requires-answer-description-if"; static REQUIRES_ANSWER_IF = "http://onto.fel.cvut.cz/ontologies/form/requires-answer-if"; - static REQUIRES_ANSWER_VALUE = - "http://onto.fel.cvut.cz/ontologies/form/requires-answer-value"; - static REQUIRES_DESCRIPTION = - "http://onto.fel.cvut.cz/ontologies/form/requires-description"; static HAS_PRECEDING_QUESTION = "http://onto.fel.cvut.cz/ontologies/form/has-preceding-question"; static HAS_PRECEDING_VALUE = diff --git a/src/util/FormUtils.js b/src/util/FormUtils.js index 755cd66a..68af3598 100644 --- a/src/util/FormUtils.js +++ b/src/util/FormUtils.js @@ -213,9 +213,6 @@ export default class FormUtils { } static hasValidationLogic(question) { - if (question[Constants.REQUIRES_ANSWER_VALUE]) { - return true; - } if (question[Constants.REQUIRES_ANSWER]) { return true; } diff --git a/types/s-forms.d.ts b/types/s-forms.d.ts index c324b87f..817ee172 100644 --- a/types/s-forms.d.ts +++ b/types/s-forms.d.ts @@ -131,10 +131,7 @@ export class Constants { static HAS_VALIDATION_MESSAGE: string; static NEGATIVE_CONDITION: string; static REQUIRES_ANSWER: string; - static REQUIRES_ANSWER_DESCRIPTION_IF: string; static REQUIRES_ANSWER_IF: string; - static REQUIRES_ANSWER_VALUE: string; - static REQUIRES_DESCRIPTION: string; static HAS_PRECEDING_QUESTION: string; static HAS_PRECEDING_VALUE: string; static HAS_MEDIA_CONTENT: string;