Skip to content

Commit

Permalink
fix mandatory fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément OLIVIER committed Jul 23, 2020
1 parent 422c016 commit f1856ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QuickEditForm/QuickEditForm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class QuickEditForm implements ComponentFramework.StandardControl<IInputs
return true;
});

if(emptyRequiredFields){
if(emptyRequiredFields.length > 0){
_this.displayMessage(MessageBarType.error, _this._context.resources.getString("EmptyRequiredFields"));
this._buttonsComponnent.setState({disabled : true});
return;
Expand Down Expand Up @@ -807,6 +807,7 @@ export class QuickEditForm implements ComponentFramework.StandardControl<IInputs
dfd.fieldValue = details.fieldValue;
dfd.isDirty = false;
dfd.fieldName = details.fieldName;
dfd.isRequired = details.isRequired;

return dfd;
}
Expand Down

0 comments on commit f1856ee

Please sign in to comment.