Validate Inputs, Warn Users, and Disable Buttons in Power Apps

  Рет қаралды 32,052

Shane Young

Shane Young

Күн бұрын

Learn how to create effective user experiences in Power Apps by validating input fields, displaying warning messages, and controlling button states. In this comprehensive tutorial, we will demonstrate various techniques for managing user interactions in your Power Apps Canvas App. Whether you are a beginner or an experienced Power Apps developer, this video will help you enhance the functionality and usability of your app. Don't forget to like, comment, and subscribe for more Power Apps tutorials!
IsMatch documentation learn.microsoft.com/en-us/pow...
Chapters:
0:00 - Introduction
0:48 - Demo of the solution
2:05 - Understanding IsBlank vs. IsEmpty for input validation
3:42 - Controlling button state with DisplayMode property
5:11 - Indicating required fields with an asterisk (*)
5:45 - Why hiding buttons is not recommended
6:55 - Using IsMatch for pattern validation
9:02 - Displaying warning messages when inputs don't match
11:03 - Implementing DelayOutput for improved user experience
12:18 - Validating Dropdown controls
13:50 - Using OnChange event for real-time validation
16:54 - Applying complex logic to control button state
18:59 - Fail Fast: The importance of timely feedback in validation
#PowerApps #CanvasApp #InputValidation #ButtonControl #UserExperience #PowerAppsTutorial
Power Apps Consulting and training at www.PowerApps911.com

Пікірлер: 54
@dougydoe
@dougydoe Жыл бұрын
The timing is just impeccable. Right in the middle of a project and this has given me more ideas for validating input fields. Yes, the IsMatch video is needed, Shane... Thank you
@ShanesCows
@ShanesCows Жыл бұрын
Thanks Douglas and good luck!
@chrisundery6132
@chrisundery6132 Жыл бұрын
Great as ever Shane. Literally had an accidental entry the other day as the user missed a field that should be set to mandatory. Can now easily fix. Keep them coming.
@ShanesCows
@ShanesCows Жыл бұрын
Thanks Chris! 😎
@jonathangagnon7652
@jonathangagnon7652 Жыл бұрын
The timing on this is great! I'm trying to control data being put into a PowerApp and visualizing it in PowerBI...well timed. And your answers are more useful than ChatGPT (Yup, I used it as an aide) And yes, please, an in-depth isMatch video would be appreciated.
@oluwatobipaul6171
@oluwatobipaul6171 Жыл бұрын
Thank you Shane. This really refreshed my memory on data validation
@ShanesCows
@ShanesCows Жыл бұрын
Cool
@TracyOsimowicz
@TracyOsimowicz 11 ай бұрын
I would love an IsMatch video (and especially if it includes a very quick tutorial on regex expression syntax?) Appreciate all your work!
@ShanesCows
@ShanesCows 11 ай бұрын
Noted. In the meantime Tracy I would ask ChatGPT to help write your Regex expressions. It is pretty good at those types of things that us mortals have no clue how to do. 🙃
@ShanesCows
@ShanesCows 11 ай бұрын
@tracyOsimowicz - I am going to turn this comment into a video for Monday. You will be famous. 🤩
@TracyOsimowicz
@TracyOsimowicz 11 ай бұрын
@@ShanesCows Haha, oh my goodness! What an honor XD Happy Friday to me!
@franknielsen3219
@franknielsen3219 Жыл бұрын
IsMatch video - YES. And thx for another great video Shane :)
@ShanesCows
@ShanesCows Жыл бұрын
You are welcome Franks. Thanks for the feedback.
@manojroy8862
@manojroy8862 Жыл бұрын
Really, helpful video to understand the basics of controls and work to it, this would also help the freshers to understand the properties of the controls and how to implement it.
@ShanesCows
@ShanesCows Жыл бұрын
Thanks 🤩
@semajnitram
@semajnitram 5 ай бұрын
an ismatch video would be great (unless you've already done it, in which case thank you!)
@ShanesCows
@ShanesCows 5 ай бұрын
Great suggestion! I will put it on my list. Thanks
@frenamakenson9844
@frenamakenson9844 Жыл бұрын
hey Shane Thanks for sharing those Tips... very Usefull to make better UX
@ShanesCows
@ShanesCows Жыл бұрын
Happy to help. Have a great day. 🐶
@GreyDob
@GreyDob Жыл бұрын
Another great video Shane, I just noticed you used AND and OR functions, didn't know that was working, I was still using the && and || 🙂
@ShanesCows
@ShanesCows Жыл бұрын
Always so many little things to learn. 😎 I
@dvk003
@dvk003 Жыл бұрын
Thank you Shane (one more time!!). I owe you the beer!!
@ShanesCows
@ShanesCows Жыл бұрын
Thanks Diego. One day we will meet, one day. 😎
@RoyAliKhairan
@RoyAliKhairan Жыл бұрын
Nice video as always--i always smile every time you correct your own words. Anyway, it seems i need your assistance here! I want to build an app to take care of the exit clearance process in my office. I do watch a lot of videos on how to build an app using this PowerApps but I still couldn't figure out how to make this exit clearance into the app. Any advice from you would be very much appreciated. Cheers!
@ShanesCows
@ShanesCows Жыл бұрын
Roy I am sorry, I don't follow what you are looking for.
@ophemtech
@ophemtech Жыл бұрын
I must confess that this is really an angel coming to my aid cuz i just hitted this validation problem. though if i had continued with using my head and tweaking things, i couldve gotten it but maybe not as better as you taught it here. but i really do have a problem, i seem to not be able to create a dataverse or sharepoint, and i still dont know why i can't create that, is it that i dont have access to do so or what do you think could be the problem. but anyways, thank you for these tutorials, its life saving
@ShanesCows
@ShanesCows Жыл бұрын
James do you need to add a connection to SHarePoint or do you need to go to SharePoint and create a site. Sorry, I don't follow what you mean by cannot create a SharePoint.
@ophemtech
@ophemtech Жыл бұрын
@@ShanesCows uhm the issue is, I haven't been able to connect to a SharePoint. And from your videos it seems you create a SharePoint site which I don't know how to do. So I'm clueless on how to do that as well as connect to dataverse created by me.
@ShanesCows
@ShanesCows Жыл бұрын
James from Office.com click on SharePoint and should be able to create a new site. This would be your own SharePont site. Then you could create a SHarePoint list there. Finally you would add that as a connection to your Power Apps app. I wonder if my free 101 class would help you with the basics? training.powerapps911.com/courses/power-apps-and-power-automate-getting-started
@ophemtech
@ophemtech Жыл бұрын
@@ShanesCows oh okay. Thank you for the help. I'd try this out
@ophemtech
@ophemtech Жыл бұрын
@@ShanesCows I don't know if I can reach out to you personally maybe by mail or Skype or something. Just in case I wanna deliberate or need a senior advice on how tos and best practices
@juliennunes814
@juliennunes814 Жыл бұрын
Great video! Though since the lblWarnEmail only shows up when the email is invalid and not blank, if the email is blank the user could actually click on the button Thats a demonstration so no one cares but it might surprises some people that copied pasted haha
@user-jn3qh2yo1w
@user-jn3qh2yo1w Жыл бұрын
Having great difficulty getting IsMatch to work correctly with a time in HH:MM format, I am using a gallery to both view and edit data in a SP List - any help would be appreciated.
@anthonyapodaca1332
@anthonyapodaca1332 Жыл бұрын
Yes! IsMatch with custom regex... maybe some help from AI friends
@ShanesCows
@ShanesCows Жыл бұрын
Like so? kzbin.info3q-x9n16wD8 😎 Thanks for the reminder.
@angelmingkem7275
@angelmingkem7275 Жыл бұрын
Hello from Indonesia... Really helpful video for me :) just learning the powerapp. Question, is it possible to record the data to Excel or Sharepoint?
@ShanesCows
@ShanesCows Жыл бұрын
Yes. If you are brand new I recommend starting with the free 101 class here training.powerapps911.com/courses/power-apps-and-power-automate-getting-started
@josecarlosbenitezmeyer645
@josecarlosbenitezmeyer645 8 ай бұрын
Hi How can I validate that the new data be equal or greater than the data already stored in a data card ?
@lwhite3225
@lwhite3225 5 ай бұрын
Great stuff! I use form.valid to set display mode for buttons. Does form.valid pick up IsMatch errors? Or do I need to add that to the button's display mode property? Not sure this makes sense to anyone but me.
@ShanesCows
@ShanesCows 5 ай бұрын
I haven't tried but I am going to guess that Form.Valid does not identify IsMatch errors as they are logic outside of the Forms own logic. My guess. :)
@espiemar1661
@espiemar1661 6 ай бұрын
How do I find a required field that is not allowing the submission of my forms? I have combed each field, I have sorted my fields with tabs and they are only required when they are visible
@zekeskinner3346
@zekeskinner3346 Ай бұрын
Hey Shane, How would I disable a button with a form field instead of a table field. I am using powerapps to automate an application into a sharepoint list and I need to make it to where the data field that is required will not allow me to continue in my application without filling out that portion. I have tried the IsBlank and IsEmpty but neither are working.
@ShanesCows
@ShanesCows Ай бұрын
Try this video kzbin.info/www/bejne/jZ26hWOijLl6i5o
@sagaisaac
@sagaisaac 10 ай бұрын
how you create a popup when exist a error on datafield?
@rebeccathorn-pena9108
@rebeccathorn-pena9108 Жыл бұрын
I'm needing to validate a date field by radio button choice. If the radio button choice = "No", date must be after today, if the radio button choice = "yes", date must be before today. Any help is greatly appreciated.
@ShanesCows
@ShanesCows Жыл бұрын
If((Radio.Selected.Value = "No" And datepicker.selectedDate > Today()) Or (Radio.Selected.Value = "Yes" And datepicker.selectedDate < Today()), "Good", "Bad") Something like that should get you started :)
@rebeccathorn-pena9108
@rebeccathorn-pena9108 Жыл бұрын
@@ShanesCows Thank you!!!
@jaspreetsingharora7070
@jaspreetsingharora7070 7 ай бұрын
Whole video please.
@ShanesCows
@ShanesCows 7 ай бұрын
Sorry, what do you mean whole video?
@jaspreetsingharora7070
@jaspreetsingharora7070 7 ай бұрын
@ShanesCows Sorry, I meant the whole video on if match topic.
@TessAlmond
@TessAlmond Жыл бұрын
Can anyone out there give me some insight into this issue? On Submit, it says that 'field_3" is required. all of the fields on the form have been completed, and none are named field_3. By default the MI field has Displayname: DataSourceInfo([@AccessRequests],DataSourceInfo.DisplayName,"field_3") Other fields likewise have display names of field_1, field_2 etc. But again, all fields have been populated, so this issue is baffling me.
@ShanesCows
@ShanesCows Жыл бұрын
Tess it sounds like your Data Source has a field named Field_3 and the data source is required. I would start by checking that. I assume it is SharePoint? That is a quick thing to check. If you find it then you can decide do you want to change the field in SharePoint not to be required or add the field to your form in Power Apps.
@TessAlmond
@TessAlmond Жыл бұрын
@@ShanesCows None of my fields are named 'Field_number" . The datasource (SP list) fields are appropriately named, as are the fields on the form. In PowerApps on this field and a few other fields, the DisplayName property of the datacard: DataSourceInfo([@AccessRequests],DataSourceInfo.DisplayName,"field_9") That is the only place I see reference to field 9.
@ShanesCows
@ShanesCows Жыл бұрын
Tess watch this video real quick. It will show you how to see your columns real names, you most likely imported from Excel and the system names are field_3 even though you think it is Department. :( kzbin.info/www/bejne/o6i7n32LoLmonZI
Use Custom Icons for your Power Apps  #shorts #powerapps
1:00
Shane Young
Рет қаралды 10 М.
Everything about sending emails with PowerApps
25:19
Shane Young
Рет қаралды 2,8 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 5 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 41 МЛН
Reusable Code in PowerApps
6:36
AxioWorks Ltd
Рет қаралды 7
How to Check if Someone is Remotely Accessing Your Computer
16:58
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,4 МЛН
Что не так с яблоком Apple? #apple #macbook
0:38
Не шарю!
Рет қаралды 258 М.
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,4 МЛН