@jbrines
Got ya!
This will be easier to do if you get rid of the datacards for the Issued By and then add it back in. Reason - this will bring back the combobox. This will be necessary for this to work properly as the Person column is a complex type (i.e. a record).
Now, with that back in place, your solution should be as follows:
For the Yellow Issued By DataCard:
1) Set the Default property to the following:
ThisItem.'Yellow Issued By'
This should be the default anyway, but just verify.
2) Set the DefaultSelectedItems property of the Combobox in that datacard to the following:
With({_user:User()},
Coalesce(Parent.Default,
If(DataCardValueSent.Value,
{
Claims:"i:0#.f|membership|" & Lower(_user.Email),
Department:"",
DisplayName:_user.FullName,
Email:_user.Email,
JobTitle:".",
Picture:"."
}
)
)
This will set the combobox to either the person ALREADY assigned in that column, or, if the Toggle (DataCardValueSent - please replace that control name to match your toggle control name) is true, to the current user. Otherwise, just blank.
3) Set the Visible property of the Combobox to false
4) Go ahead and add a label into the datacard as you had before and set the Text property to the following:
DataCardValueBy.Selected.DisplayName
Replace the DataCardValueBy with the name of the Combobox control in the datacard.
5) Set the Update property of the data card for this Yellow Issued By field to:
DataCardValueBy.Selected
Again, replace the DataCardValueBy with the name of the Combobox control in the datacard.
This should solve the Yellow Issued By label.
For the Yellow Issued Date - use the solution I provided before
1) Set the Text property of the Label to:
Text(
Coalesce(Parent.Default,
If(!IsBlank(DataCardValueReason.Selected.Value), Now())
),
ShortDateTime
)
Replace the DataCardValueReason with the name of your Reason dropdown control.
2) Set the Update property of the Yellow Issue Date Datacard to:
DateValue(labelDate)
Replace labelDate with the name of the control you are displaying the date in.
Hopefully that is pretty straightforward and will be what you are looking for.