Hi @daroot,
Could you please share a bit more about your scenario?
Which data type of the Name and Contact column within your SP list data source? Is it a Choice type column or Person type column?
For your first question, you could consider take a try to store your Main Form data (the values you have typed before) as a global variable when clicking the + button (No.3), then use the values stored within the global variable as a default value for each field/Data card within your Main Form.
Please check and see if the following thread would help in your scenario:
https://powerusers.microsoft.com/t5/General-Discussion/New-form-without-resetting-the-fields/m-p/146589
On your side, you should take a try with the following workaround:
Add the following formula within the OnSelect property of the + Button (No.3):
Set(MainFormRecord,MainForm.Updates)
I assume that you want to set a default value for the Group Data card, please take a try to set the DefaultSelectedItems property of the Combo box control within the Group Data card to following:
If(
EditForm1.Mode=FormMode.New,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: MainFormRecord.GroupColumn
},
Parent.Default
)
Note: The GroupColumn represents the column within your SP list the GROUP Data card relaetd to. I assume that the GroupColumn is a Choice type column within your SP list.
For your second question, how to do you submit Pop-up form data (new value) on your side? Using SubmitForm function?
I assume that you use SubmitForm function to submit your Pop-up form data, if you want the new value created by user to be auto selected on the main form, please take a try with the following workaround:
Add the following formula within the OnSelect property of Submit button (No.3):
Set(NewCreatedValue,PopUpForm.LastSubmit);
Set(IsNewCreated,true)
Set the DefaultSelectedItems property of the Combo box control within the Name Data card (within your MainForm) to following:
If(
EditForm1.Mode=FormMode.New,
If(
IsNewCreated=true,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: NewCreatedValue.NameColumn
},
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: MainFormRecord.NameColumn
}
),
Parent.Default
)
Note: The NameColumn represents the column within your SP list, which related to the Name Data card within your Main Form or Pop-up Form.
In addition, when you navigate from other screen to the Main Form screen to create a new record, please reset the IsNewCreated variable to false using following formula:
Set(IsNewCreated,false)
Also please add above formula within the OnSelect property of the + Button (No.3) within your Main Form
Best regards,
Kris