Hi,
You need to store the click event date and who clicked the button, into a database or locally on the device, then, check if that variable is older than today to shows the button as "Display.Edit"
For Example. Try this,
"On select" Button event:
ClearCollect(
colEnableButton,
{
ClickEventDate: Now(),
User: User().Email
}
);
SaveData(
colEnableButton,
"colEnableButton"
)
"DisplayMode" Button property:
If(
Or(
DateDiff(
First(colEnableButton).ClickEventDate,
Now(),
Days
) >= 1,
IsEmpty(colEnableButton)
),
DisplayMode.Edit,
DisplayMode.Disabled
)
"OnStart" App event:
LoadData(
colEnableButton,
"colEnableButton",
true
)
NOTE:
My example works only on mobile devices or powerapp desktop application because "SaveData" and "LoadData" functions are an Offline features not supported by browsers.
You can store the "colEnableButton" collection into a databese too, then get it by the User().email, as an "ID", to be sure that the button will be disabled to him if corresponds.
Regards!