Hi,
I created a form, it's like an order form.
The person details are enter at the top of the form and what they want is at the bottom.
The data is stored in two SharePoint lists one for the person details and the other for the order.
The issue is the bottom part I have an order number text input, Date box, Description text box and another text box.
What's happening it's creating a new line just by clicking into each of those input boxes so before they finish the line there are 4 blank lines underneath.
This is my OnSuccess code in Form1:
ForAll(FormCollection, If(!IsBlank(OrderNumber), Patch('Order Jobs', Defaults('Order Jobs'), {'UR Number': OrderNumber, 'Date': DateValue(Date), Description: Description, 'ItemNumber': ItemNumber, MasterID: Form1.LastSubmit.ID})))
I have a save button at the end of the line which is when I would like the extra line created and this is the OnSelect code:
Patch(FormCollection, ThisItem, {OrderNumber: OrderInput.Text, Date:DateInput.SelectedDate, Description:DescriptionInput.Text, ItemNumber:ItemInput.Text, ShowSaveButtons:false}); If(EditPressed, false, Collect(FormCollection, {OrderNumber:"", Date:("dd/mm/yyyy") , Description:"", ItemNumber:"", ShowSaveButtons:true})); UpdateContext({EditPressed: false}); Set(NeedsSaved, false).
I also have a delete button to remove the entry.
Thanks for your help