Hi @Ashok2 ,
Am so sorry that I had some mistakes in above formula, please try below:
//create a new item in the list that the LookUp column look up in.
Patch(YourLookUpList, Defaults(YourLookUpList), {ColumnLookedUp: TextInput.Text, OtherColumn1: ..., OtherColumn2: ...});
If(Form.Mode = FormMode.New,
//in new mode create a new item in this list.
Patch(ThisList,Defaults(ThisList),{LookUpColumn: LookUp(Choices(ThisList.LookUpColumn), Value = TextInput.Text)}),
//in other mode edit the selected item of this list.
Patch(ThisList, Gallery.Selected ,{LookUpColumn: LookUp(Choices(ThisList.LookUpColumn), Value = TextInput.Text)})
);
//save other columns of this list
SubmitForm(FormName)
Besides, you will need to modify the formula in the Update property of the LookUp column Data Card:
If(!IsBlank(DataCardValue.Selected.Value),DataCardValue.Selected)
//DataCardValue is the name of the Combo box control inside this DataCard
For the second question, what do you mean by "save other values of lookup in SharePoint with others"? Do you want to update items of 2 different lists within 1 Form? You may see other columns have been added into the first Patch function of my updated formula.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.