I have created a an app which records the time in the edit form with the formula
UpdateContext({CurrentTime2: Now()});UpdateContext({ButtonClicked2: true})
for button
and
If(ButtonClicked2, CurrentTime2, Parent.Default)
for text input
How to add the same button in Gallery so that i can edit the list from gallery itself