Closed firadisaad closed 4 years ago
You can always emit the submitButton
event like so...
this.formio.emit('submitButton');
tanks for your answer, what is this.formio, i need more details please
try this:
@ViewChild(FormioComponent, { static: false })
formio: FormioComponent;
submitButton() {
if (this.formio) {
this.formio.formio.emit('submitButton');
}
}
tanks, it's working 👍
Import formComponent from
import { FormioComponent } from '@formio/angular';
here when i add formIo tag in my angular project : `<formio [(form)]="formPreview" (submit)="onSubmit($event)">
<button (click)="submit()">myButton `
i'm trying to click to submit button (myButton) and get form data
can someone help me ?