Modify missionary form
parent
d25377cdbe
commit
0e18651ff6
|
|
@ -315,7 +315,8 @@
|
|||
<textarea matInput type="text" placeholder="Your Answer" formControlName="honeyPot" required></textarea>
|
||||
</mat-form-field>
|
||||
<button mat-raised-button type="submit" [disabled]="!form.valid || submitButtonDisabled">{{submitButtonText}}</button>
|
||||
<p *ngIf="!form.valid">Please enter all fields to submit.</p>
|
||||
<br>
|
||||
<p *ngIf="!form.valid">Please complete all fields to submit</p>
|
||||
</form>
|
||||
</div>
|
||||
<div sideBar class="side-bar">
|
||||
|
|
|
|||
|
|
@ -144,8 +144,6 @@ export class MissionaryFormPageComponent implements OnInit {
|
|||
let opts = new MatDialogConfig;
|
||||
opts.data = { title:'Missionary Support','message':'Thank You! Your submission has been received.' };
|
||||
let popup = this.matDialog.open(OkPopupComponent,opts);
|
||||
this.submitButtonText = "Submit";
|
||||
this.submitButtonDisabled = false;
|
||||
popup.afterClosed().subscribe(()=>{
|
||||
this.submitButtonText = "Form Submitted"
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue