Dilan,
Lets call your attributes toolExpense1, toolExpense2, otherExpense1, otherExpense2 and expenseType. You can create a microflow that checks the value of expenseType and resets the expense attributes as appropriate. So if the value of expenseType is Tool, you can set otherExpense1 and otherExpense2 attributes to empty, and if the value of expenseType is Other, you can set toolExpense1 and toolExpense2 to empty. Once this microflow is created, go to your page and set this microflow as the OnChange microflow for the expenseType Radio button. In this way, when expenseType changes, the hidden attributes will be set to empty.
Hope that helps,
Mike
P.S. some datatypes (date, integer, decimal, boolean, binary, etc.) can't be set to empty, so you'll need to set those to the default values or some other appropriate value
Yes the above mentioned method worked. But I made a mistake by setting "commit" to entity in the edit object activity. Be sure to not to set "commit"..