cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

ONE SUBMISSION PER TODAY'S DATE ONLY

Hi There! 

 

I am a newbie here, i just want to ask help on how to disable the submit button after submission of one form per TODAY'S DATE. The target is after submission of current email user for today's date then the submit button will automatically disable then reactivate again the submit button on the next day. Hope anyone could help  me for this. pls see image below. by the way my data source is sharepoint list "Daily Health Tracker" .Thank you! 

JhingKris_1-1599708683149.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi@JhingKris,

Based on the issue that you mentioned, do you want to disable the Submit Button automatically if the user has submitted the form Today()?

Could you please share a bit more about the scenario, is your app allows a user to submit once a day?

In my scenario, 'Daily Health Tracker' allows a user to submit the form only once a day. I have a Person column named 'Full Name' to store the users' full name.

I have a test on my side, please take a try as below.

Set the DisplayMode of the Submit Button as below:

 

If(
    IsBlank(
        LookUp(
            Filter(
                'Daily Health Tracker',
                Date = Today()
            ),
            'Full Name'.DisplayName = User().FullName
        ).'Full Name'
    ),
    Edit,
    Disabled
)

 

Note: After that, if a user has submitted today, the Submit Button will be disabled when he tried to submit again.

Best Regards,

Qi

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi,

Put this on the DisplayMode of the button

If(
   CountRows(
      Filter(
         YourListName,
         IsToday(YourDateFieldName)
      )
   )>0,
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Hi @JhingKris ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Community Support
Community Support

Hi@JhingKris,

Based on the issue that you mentioned, do you want to disable the Submit Button automatically if the user has submitted the form Today()?

Could you please share a bit more about the scenario, is your app allows a user to submit once a day?

In my scenario, 'Daily Health Tracker' allows a user to submit the form only once a day. I have a Person column named 'Full Name' to store the users' full name.

I have a test on my side, please take a try as below.

Set the DisplayMode of the Submit Button as below:

 

If(
    IsBlank(
        LookUp(
            Filter(
                'Daily Health Tracker',
                Date = Today()
            ),
            'Full Name'.DisplayName = User().FullName
        ).'Full Name'
    ),
    Edit,
    Disabled
)

 

Note: After that, if a user has submitted today, the Submit Button will be disabled when he tried to submit again.

Best Regards,

Qi

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,829)