Hi @Anonymous,
It sounds like you have two datasources on SharePoint:
- DataSourceA: has LastName and FirstName that is also used for writing data in B
- DataSourceB: needs LastName and FirstName from whatever is selected from A
Here's the progression of your app as I inferred:
- User selects a record from a Gallery that is bound to DataSourceA.
- The selected record provides the LastName and FirstName to an EditForm that is bound to DataSourceB
- User writes data to DataSourceB with the respective LastName and FirstName
The underlying principle to learn here is learning how to reference the selected record in a gallery.
In your Form for B, go to the DataCard where you want the FirstName. In its Default property, set it to
Gallery.Selected.FirstName
It will automatically retrieve the FirstName that's selected in the Gallery.
You can use a condition to only show this name automatically if the form is in edit mode--since you probably want this field blank if the form is in NewForm mode.
If(Form.Mode=FormMode.Edit,Gallery.Selected.FirstName,"")
Repeat this for the LastName column. And revise it if you wanted the opposite to occur for Edit and New modes.
Let me know if this was helpful with a thumbs up.
Mr. Dang
_______