diff --git a/src/src/components/uploads/createUploads.jsx b/src/src/components/uploads/createUploads.jsx index 4134090b..17e11723 100644 --- a/src/src/components/uploads/createUploads.jsx +++ b/src/src/components/uploads/createUploads.jsx @@ -111,6 +111,14 @@ class CreateUploads extends Component { ){ this.handleError("Please fill in all required fields before submitting."); return; + }else if( + (!this.state.inputValue_title || this.state.inputValue_title ==="") || + (!this.state.inputValue_desc || this.state.inputValue_desc ==="") || + (!this.state.inputValue_organ || this.state.inputValue_organ ==="") || + (!this.state.inputValue_type || this.state.inputValue_type ==="") + ){ + this.handleError("Above marked fields are required."); + return }else{ this.handleError("The system has encountered an unrecognized error during validation. \ Please try again or contact the help desk for further assistance."); @@ -221,7 +229,7 @@ class CreateUploads extends Component { console.debug('%c◉ Cant Match: ', 'color:#00ff7b', evt.target.id); } - this.validateForm(); + // this.validateForm(); } } @@ -500,7 +508,7 @@ class CreateUploads extends Component {
The Organ In Question
+Select the organ type that the data in this Upload is intended to be derived from.
The Type of Dataset In Question
+Select the data type that this Upload will contain.
Select the organ type that the data in this Upload is intended to be derived from.
+Select the data type that this Upload will contain.
+