web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Bdsb1T48YPyFJbu2DCa9+8
Power Automate - Building Flows
Answered

Send email if error in completed form

Like (0) ShareShare
ReportReport
Posted on 3 Sep 2023 12:35:27 by 31

Good morning everyone,

I'm working on a form to email the submitter if they complete the form with an incorrectly formatted time (which would not be an issue if Microsoft gave us a dedicated time field- arg). I've got the flow set up with the trigger of the form being filled out, followed by get responses.

The issue is that everyone who fills out the form, even with correctly formatted times, is getting the message. The condition must have an error somewhere, but I can't figure out what it is. I'm sure it's something simple, but I can't figure it out.

 

mvillamaino_0-1693743889072.png

Any thoughts?

Thanks,

-Matt

 

  • mvillamaino Profile Picture
    31 on 03 Sep 2023 at 19:09:16
    Re: Send email if error in completed form

    I figured out a workaround - I'm using the presence of a space or not to trigger the error. If there is no space, it triggers, if there is a space it does not. 

     

    It would be better if it could actually check it as a proper time in case someone makes another error, but this should work for now.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 03 Sep 2023 at 18:27:21
    Re: Send email if error in completed form

    That doesn’t matter.

     

    The way your condition is set up it will always be true no matter what the user types in.

  • mvillamaino Profile Picture
    31 on 03 Sep 2023 at 18:21:32
    Re: Send email if error in completed form

    @Matthy79 - I think that is most of the issue. The problem I'm trying to catch is when people do not put a space between the time and the am/pm, for example 10:00AM instead of 10:00 AM. While you can't see it in the screenshot, I've got a space before the AM/PM, with the intent of it triggering if it did not have a " AM" or " PM." Unfortunately, it looks like it is just registering that an AM/PM is there. I tried adding quotation marks to get an exact match, but they did not save in the script. 

  • Verified answer
    Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 03 Sep 2023 at 12:44:49
    Re: Send email if error in completed form

    There are more errors.

     

    for example. Every time that Endswith AM won’t end with PM so the condition will always be true.

     

    if you want to check it that way you will have to group some of the condition. But I think you should check if it is a valid date.

     

    I‘m not so good in Forma but I‘m sure there is a better way to handle times.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete