Hi @msm8504 ,
Could you please share a bit more about your scenario?
Do you want to auto set the 2nd LookUp field value within your 1st LookUp field (ComboBox)?
Based on the issue that you mentioned, I think there is something wrong with your Operation. Currently, within PowerApps, we could not assign or set a value to a property of another control within one control.
Currently, you could consider set default value for the 2nd LookUp filed directly based on a variable within your Edit form.
I have made a test on my side, please take a try with the following workaround (the TaskLists field on my side represents the 2nd LookUp field in your scenario😞
Set the Items property of the ComboBox within the TaskLists (LookUp field) data card to following:
Choices([@Tasks].crba2_TaskLists_Task)
On your side, you should set the Items property of the ComboBox within your 2nd LookUp Data card to following:
Choices('YourEntity'.YourSecondLookUpField)
Set the DefaultSelectedItems property of the ComboBox within the TaskLists (LookUp field) data card to following:
If(
myVar=1,
LookUp(Choices([@Tasks].crba2_TaskLists_Task),'Primary Name' = "Task2"),
Parent.Default
)
On your side, you should set the DefaultSelectedItems property of the ComboBox within your 2nd LookUp data card to following:
If(
myVar=1,
LookUp(Choices('YourEntity'.YourSecondLookUpField), 'Primary Name' = "A specific Value"), /* <-- Find the specific record from your Referenced Entity based on a specific value */
Parent.Default
)
Note: The Referenced Entity represents the Entity your 2nd LookUp filed reference values from.
Please take a try with the above solution, then check if the issue is solved.
Best regards,