Thanks @WarrenBelz for your help, but the thing here is it doesn`t work properly with that. Let me provide you all details here.
-> I have two lookup fields in spo, 1st is name and 2nd is city.
-> On 1st
OnChange/OnSelect Event- ClearCollect(valSelected,{Value:DataCardValue2.Selected.'Name',City:DataCardValue2.Selected.City,Id:DataCardValue2.Selected.ID});
here DataCardValue2 field is 1st combobox
defaultselecteditems: Parent.Default
Items: Filter('SPList',StartsWith('Full Name',DataCardValue2.SearchText))
the value of name combobox can be changed based on user typing in that combobox field.
the 1st field is working fine.
Now, on the second 'City' lookup field, I want to show city of 'NAME' (1st lookup field) ,
In my case, if user changes value of 'Name' field, then it shows the 'city' accordingly but the issue arises when i opened the already saved record. it does not show the default value of city based on name which is already seelcted.
The formula of second city field is- Items-ValSelected,
Defaultselecteditems- Thisitem.Name:City (If i used that then it will show defualt field but not changing field when i change the name).
if i used valSelected.City, then it will only show me value when i changed the name, but now showing me when i open the already saved form.
@RandyHayescan u please help me on this.
Thanks,