Alright, I have a icon that I have to click on to send the ticket. The onselect code of this icon is the following:
If(CountRows(Filter(MancoTabel, Value('Ticket ID')=Value(DataCardValue24.Text))) > 0,Navigate(Overzicht,None),SubmitForm([@EditForm]));
If(CountRows(Filter(MancoTabel, Value('Ticket ID')=Value(DataCardValue24.Text))) > 0,SubmitForm(EditForm),SubmitForm([@EditForm]))
This basically checks if the ticket id is already in a column, if it is, it will navigate to overzicht and submit the form. When the ticket id is new, it will just submit the form and stay on that screen.
Then on the success of the editform i have this code:
Set(ResetValue, ""); NewForm(EditForm);
ResetValue is to set the values to nothing after submitting. It then creates a new form.
@WarrenBelz