Hi @omarmahmood ,
Based on the formula you provided, do you want to update the record based on the selection from your dropdown?
Could you please share more about your data source and your gallery configuration, I guess when you pick a selection from the Dropdown, a record will display in the gallery which contains fields like”CorrectAnswer”,”ID”,”Marks”. You want to update the Score with the selected field value.
Please post some screenshots about your error message.
Here is a standard formula for reference:
If(condition,…
Patch(
QCollection,
LookUp(QCollection,QuestionID = xxx),
{
Score: Value
}
)
)
Note: xxx is a specific value which you should specify from the gallery
And on your side, you should add a ) to your LookUp(). @mdevaney provides a correct solution, I just do some addition on the standard formula.
Please modify your formula as below:
if(Dropdown2.Selected.Value = Filter_Gal.Selected.CorrectAnswer,Patch(QCollection,LookUp(QCollection,QuestionID =Filter_Gal.Selected.QuestionID),{Score:Filter_Gal.Selected.Marks}))
Best Regards,
Qi