Hi,
I have a form that works perfect in preview but is causing me issues when I publish it. I generated my form from a SharePoint list. I have a custom home screen where a user clicks an icon submit a new request. This navigates to EditScreen1, with DefaultMode set to FormMode.New (because this should always be new info, not used for editing in my Form). Once the user submits the form it navigates them to a custom screen called SetupTasks. This is an Edit screen with an item of "EditForm1.LastSubmit." In Preview everything works fine. However, with the published form, when I click the submit button, I can see it reset the only toggle I have on the screen and submits it with the default info for this control.
I have tried several different fixes but they all misbehave one way or another (sometimes the new form retains previously submitted info, sometimes it overwrites previously submitted info, etc.). Any tips you can offer would be much appreciated. I've got screenshots as well. Thank you!
SubmitButton OnSelect:
If(IsBlank(ClientNumbers),Set(ClientNumbers,TextInput4.Text));
If(IsBlank(ClientNames),Set(ClientNames,TextInput5.Text));
If(IsBlank(ContactNames),Set(ContactNames,TextInput1.Text));
If(IsBlank(ContactEmails),Set(ContactEmails,TextInput2.Text));
SubmitForm(EditForm1);
If(FormUserEmailVar = DataCardValue11.Selected.Email,Set(StatusVar,"New"); Set(FilterVar,"New");Set(FilterVar2,FormUserEmailVar);Set(ItemVar,EditForm1.LastSubmit);Navigate(SetupTasks,ScreenTransition.None),Navigate(Confirmation,ScreenTransition.None));
Office365.SendEmail(DataCardValue11.Selected.Email,Concatenate("Client ",DataCardValue12.Text," Interested in Product"),HtmlText4.HtmlText,{From:User().Email,Cc:Concatenate(DataCardValue10.Selected.Email,";",DataCardValue17.Selected.Email),IsHtml:true,Importance:"Normal"})
Home Screen (custom scroll screen)
Activation Request (EditScreen1)
Setup Tasks (custom form screen)