cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akbarmahfuzalam
Post Prodigy
Post Prodigy

Compare the Submitted record with Current time

Hellos.

 

If I would like to enable the Submit button after 48 hours for the same user, How would I do that please suggest how to achieve to save the time for the user submits the record to the Sharepoint List. Then make this button available by comparing the current time with the time the record was submitted.

 

I am not able to compare the record was submitted with Current time - I tried by using the below formula but no success.

 

If(Text(Label13.Text , "[$-en-US]mm/dd/yyyy" ) = Text( Today(), "[$-en-US]mm/dd/yyyy" ),DisplayMode.Edit,/Disabled)

 

akbarmahfuzalam_0-1613316210244.png

akbarmahfuzalam_1-1613316269638.png

 

 

 

3 REPLIES 3
Drrickryp
Super User II
Super User II

@akbarmahfuzalam 

You would use the DateDiff() function for that. 

If(
     DateDiff( Now(), DateValue(Label13.Text ), Hours
     ) > 48,  DisplayMode.Edit,/Disabled
)
Drrickryp
Super User II
Super User II

@akbarmahfuzalam 

If this works as a solution for your question, please accept it so others can find it.

akbarmahfuzalam
Post Prodigy
Post Prodigy

@Drrickryp 

 

Its not working . What I am trying to achieve here is that I am not allowing anyone to open the page again. And if wants to come for the first time it allow to do all the activity on the screen, but if he/she tried 2nd time it wount allow . He/she need to wait for 48 Hrs of time to again visit the page.

 

akbarmahfuzalam_0-1613739392900.png

Earlier i was trying to do this which is mention below

akbarmahfuzalam_1-1613739444558.png

 

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (15,851)