I have a form where users need to enter two types of data. One set is core information like firstname and lastname. The other set is transactional like deposit or withdrawal, amount, account type. Once the user completes the entry for the first time they can click Save and Continue (or Add). OnSelect should create an item in the SP list with all the content, make the name fields read only, clear the transaction information from the form allowing the user to enter another transaction. When they again click Save and Continue it should create yet another record in the SP list.
I've tried:
SubmitForm(SharePointForm1);
Set(NewRecord,true)
and also:
SubmitForm(SharePointForm1);
Set(varFirstRecord, "false"); this is to hide/read only the repeatable inputs
Set(varResetTrans, "true"); this is to null the transactional inputs
Notify("Your transaction has been saved.");
FormMode.New;
Set(NewRecord,true);
My form OnSuccess is:
If(varFirstRecord = "false",
Set(varLastSubmit,SharePointForm1.LastSubmit), RequestHide()
);
My error is that after the first Save and Continue click it does create a SP item and updates the form (hide/read only), but when I update the transaction information and click the button a second time nothing gets posted to the SP list. The Notify fires at least.
What might I be doing wrong?

Report
All responses (
Answers (