cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Microsoft
Microsoft

Re: ONE SUBMISSION PER TODAY'S DATE ONLY

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
Highlighted
Super User III
Super User III

Re: ONE SUBMISSION PER TODAY'S DATE ONLY

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.

 

Highlighted
Super User III
Super User III

Re: ONE SUBMISSION PER TODAY'S DATE ONLY

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.

Highlighted
Microsoft
Microsoft

Re: ONE SUBMISSION PER TODAY'S DATE ONLY

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,884)