Power Apps form data validation tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 393

  • @ishanaggarwal7092
    @ishanaggarwal7092 3 ปีที่แล้ว +19

    Dude many many thanks! Was looking for exactly this since last many days. I dont know why no one is stressing on functionality instead just focussing on how to mess things around. Thanks a ton :-)

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      You are most welcome and completely agree with your comments.

    • @HiroshimaMS
      @HiroshimaMS 11 หลายเดือนก่อน

      The same here.

  • @sibidi894
    @sibidi894 11 หลายเดือนก่อน +4

    For every PowerApps project I work on, I watch between 5 to ten videos made by Reza. Your contribution to my success in my career cannot be over emphasised. Keep up the good work work mate! ❤

    • @RezaDorrani
      @RezaDorrani  11 หลายเดือนก่อน

      Wow, thanks so much

  • @kevinmahlangu4219
    @kevinmahlangu4219 3 ปีที่แล้ว +1

    Hands down the best Power Apps channel on TH-cam

  • @Front_endgut-tm9cf
    @Front_endgut-tm9cf ปีที่แล้ว +2

    Whole internet is playing with the icon's for this, but you just nailed it brother .

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      So happy to hear that! Thanks so much for watching

  • @TejaswinG
    @TejaswinG 3 ปีที่แล้ว +4

    Hey Reza. Just want to let you know that your Power Apps forms videos have been immensely helpful. You have covered most scenarios in these video series. Thank you!

  • @jcmagcalas4387
    @jcmagcalas4387 3 ปีที่แล้ว +1

    Thank you Reza for helping me in my Power Apps journey. I have learned a lot from your tutorials. Continue providing comprehensive tutorials. Stay safe always.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Happy to hear that! I will keep trying my best.

  • @matth4745
    @matth4745 3 ปีที่แล้ว

    Reza, I've spent more time with you than my family. You are a great help to my work.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      😊 thanks for watching and liking my videos.
      Please spend more time with family :)

  • @jeromedutzi5586
    @jeromedutzi5586 3 ปีที่แล้ว +2

    Amazing video; in my opinion you are providing the best content in this field. Thank you very much!

  • @PowerAppsTraining
    @PowerAppsTraining 9 หลายเดือนก่อน +2

    Thank you Reza. Your videos are very helpful for beginners as well as experienced candidates.

    • @RezaDorrani
      @RezaDorrani  9 หลายเดือนก่อน

      You are very welcome

    • @PowerAppsTraining
      @PowerAppsTraining 9 หลายเดือนก่อน +1

      I am a power app developer your videos help me a lot. Tnq again

  • @soyebmalek1536
    @soyebmalek1536 3 ปีที่แล้ว +2

    Thank you for detailed explanation.
    I loved the way you put your logic in PowerApps in most optimized way in all the videos..
    Glad to watch these videos 👏👍

  • @kreszentzia8345
    @kreszentzia8345 4 หลายเดือนก่อน +2

    Exactly what I was searching for! Thanks a lot and very good explained as well!

    • @RezaDorrani
      @RezaDorrani  4 หลายเดือนก่อน

      Most welcome

  • @abhijityenpure969
    @abhijityenpure969 ปีที่แล้ว +1

    Thanks for creating these tutorials. Very helpful.

  • @simonball5602
    @simonball5602 ปีที่แล้ว

    Another great video Reza - thank you. I’m slowly making it through your content. IMO you’re the #1 PowerApps tutor on TH-cam. Please keep it up.

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      Wow! Thanks so much Simon.

  • @sayyedadeebhussain5345
    @sayyedadeebhussain5345 3 ปีที่แล้ว +1

    Thanks Reza, you are just making powerapps more wonderful for us.
    Just want to add from my side also:
    Set DisplayMode of Submit button with this code, it will easily disable button if form validation not completed. (But I think that will work with list required conditions only.)
    If(EditForm1.Valid,Edit,Disabled)

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Thank you!
      That is true. It will only work with required only conditions.

    • @sayyedadeebhussain5345
      @sayyedadeebhussain5345 3 ปีที่แล้ว

      @@RezaDorrani:)

  • @VenkateswarluChalla-l9u
    @VenkateswarluChalla-l9u ปีที่แล้ว +1

    Great Explanation Clear and Straight Forward to words the Content I am Wondering for the Power Apps Trainer , You are my Power Apps Trainer.
    No one is giving Clear Explanation regarding any topic in Power Apps and they don't know that how to make use of Power Apps.
    Thanks for Providing the Great Lectures 🎉🎉🎉🎉
    Looking forward for Great Lectures and Soon i want to become a Member in Your TH-cam Channel.

  • @keinthf
    @keinthf 2 ปีที่แล้ว +1

    You are the best!!, thanks for all this videos about power apps and automate.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Thank You for your kind words

  • @premsai9908
    @premsai9908 3 ปีที่แล้ว +1

    Dear Reza You are doing a Noble Job I have No words to Thank your Help to beginners like me.

  • @hectorgeronimo97
    @hectorgeronimo97 9 หลายเดือนก่อน

    You are a genius and a great teacher

    • @RezaDorrani
      @RezaDorrani  9 หลายเดือนก่อน

      Thank You so much

  • @samitbhattacharya2201
    @samitbhattacharya2201 3 ปีที่แล้ว +1

    Your video tutorials always save my day. Thank you very much.

  • @adrianquintanilla850
    @adrianquintanilla850 2 ปีที่แล้ว

    Great video!!!!
    Loved the weekday validation saved me hours scoring the internet!!!!

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Awesome! Thanks for watching.

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI 3 ปีที่แล้ว +2

    Thanks Reza for this great video. So many useful scenarios indeed. Much more than I was looking for!

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Thanks for watching Amr

  • @AdiCristea
    @AdiCristea 3 ปีที่แล้ว +4

    Thanks, Reza! You already know this, but for your subscribers, we could have just restricted the Text control to only allow Numbers by changing the Format property from Text to Number. Also there is a MaxLength that limits the number of characters allowed in that Text Input control, however it would only check the upper limit, so the use of Len is welcomed (and also the Match.Digit & Match.Letters is an awesome tip!).

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +2

      Hi Adi, thanks for the feedback. I had included the format property to Number but wanted to keep the video focussed on adding validations. I had spoken about it but got edited in the final version.

    • @donnalutheran6335
      @donnalutheran6335 2 ปีที่แล้ว +1

      @@RezaDorrani thanks, this is an easy tutorial. I'm doing this first before applying the formatting for my phone number.

  • @Christian-tf6ol
    @Christian-tf6ol ปีที่แล้ว +1

    You saved me, thank you as always Reza 👏❤

  • @anantharamakrishnan19
    @anantharamakrishnan19 2 ปีที่แล้ว +1

    You are awesome. The way you explain, the pace is just perfect and easy to grasp and the contents are so useful. Also, appreciate the efforts to keep the video just relevant for viewers need, making the essential cuts etc.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Glad you like them! Thanks so much for the awesome feedback.

  • @chintandd
    @chintandd 3 ปีที่แล้ว +1

    Awesome. I was searching for the error message text right beside the respective control. thx :)

  • @AkishaAnthony
    @AkishaAnthony 2 ปีที่แล้ว +1

    Thank you. This video has helped my solved some validation issues.

  • @oricchannel2811
    @oricchannel2811 2 ปีที่แล้ว +1

    Hi, Reza! Won my LIKE and SUBSCRIPTION. Thank you for sharing this nice content video !!!
    Greetings from Brazil !!!

  • @bobkiggundu9010
    @bobkiggundu9010 2 ปีที่แล้ว +1

    This has been extremely helpful, thank you!

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Glad it was helpful!

  • @PKCKMK
    @PKCKMK 11 หลายเดือนก่อน +1

    Thanks Reza, you solved my problem @ 5:10

    • @RezaDorrani
      @RezaDorrani  11 หลายเดือนก่อน

      Most welcome

  • @jimfitch
    @jimfitch 3 ปีที่แล้ว +1

    Another terrific tutorial - thanks, Reza

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Thank you Jim

    • @jimfitch
      @jimfitch 3 ปีที่แล้ว

      @@RezaDorrani This reply is completely off-topic, and I apologize for that, but I am pulling my hair out trying to create a Dataverse table for use in a Power App in MS Teams. (I have extensive Access/Excel VBA experience, a lot of Teams experience, limited experience with Power Apps in my Default non-Teams Environment, & no experience with Dataverse.) I created a Dataverse table with 2 columns: ID (primary column) as Autonumber; DateTimeIn as Date-and-Time. The problem is that both columns are read only, so I am unable to add records to the table. I want to add a few dummy records to the table before I begin developing the Power App (screens, controls, logic, etc.). I raised the issue on Power Apps Community, but none of the suggestions made to date have worked. Do you have any ideas for this? Thx.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      @@jimfitch Every table comes with a default Name column which is required. You can add some data in Name column.

    • @jimfitch
      @jimfitch 3 ปีที่แล้ว

      @@RezaDorrani True, but unfortunately, the date-time column is read-only.
      Also, it does not make sense to me why it is possible to assign the Autonumber data type to the Primary Column, but then impossible to add rows to the table b/c that field lacks values when creating a new record. I’m not too worried about this right now b/c I figure I’ll work around it in the Power App with a hidden control that creates the entry. Big untested assumption, but more concerned right now about adding a date-time column that will accept data.)

  • @marcovilla2112
    @marcovilla2112 10 หลายเดือนก่อน

    thanks as always Reza! your videos are very easy to understand and very useful!

    • @RezaDorrani
      @RezaDorrani  10 หลายเดือนก่อน

      Glad to hear that!

  • @tcoalson
    @tcoalson 2 ปีที่แล้ว +1

    Great video! Thanks for sharing your knowledge!

  • @andrewadams8601
    @andrewadams8601 ปีที่แล้ว +1

    This was exactly what I needed. Thank you so much for posting! Subbed to check out what else you have.

  • @christerrussberg3059
    @christerrussberg3059 3 ปีที่แล้ว +1

    Thanks for a great video about different techniques for validation.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Thank you for watching

  • @ExploreMore313
    @ExploreMore313 2 ปีที่แล้ว +1

    Thank You Reza for detailed explanation😊

  • @santodomingo1915
    @santodomingo1915 3 ปีที่แล้ว +1

    Hey! This is a great video, I've learned a lot on this 20 min. Thank you so much!!!!

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Glad to hear that! Thank You for watching.

  • @prajwalskateel
    @prajwalskateel 3 ปีที่แล้ว +1

    great video and very helpful. always able to learn new things from each video

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      So happy to hear that. That’s the goal of this channel. Thank you for watching.

  • @oladman9058
    @oladman9058 3 หลายเดือนก่อน +1

    Many thanks for a very helpful video. God bless you real good.

    • @RezaDorrani
      @RezaDorrani  3 หลายเดือนก่อน +1

      Glad it was helpful!

  • @TechChaitu
    @TechChaitu 3 ปีที่แล้ว +3

    Great Video!
    Can you make video on Validate function

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Will add it to my backlog but this is the first request on this topic. I will need a lot more requests on this topic to give this a higher priority.

  • @garethlp
    @garethlp 2 ปีที่แล้ว +1

    Thank you so much... your videos are so helpful!

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Your most welcome and thanks for watching the videos

  • @iancrosby7265
    @iancrosby7265 3 ปีที่แล้ว +1

    Another great video, already thinking of the solutions I can provide now. Thanks

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Excellent! Thanks for watching Ian.

  • @PattyJames3478
    @PattyJames3478 3 ปีที่แล้ว

    Great Video! Thank you for taking the time to create this!

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      You are most welcome

  • @sonali2k11
    @sonali2k11 3 ปีที่แล้ว +1

    Great video Reza 🙂

  • @clauvallejos
    @clauvallejos 3 ปีที่แล้ว +1

    Love u from Chile, thanks!!

  • @sundrapillay6668
    @sundrapillay6668 3 ปีที่แล้ว +1

    Thanks Reza for the great tutorials have a great New Year

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Thank you & Happy new year!

  • @davidemercadante2406
    @davidemercadante2406 3 ปีที่แล้ว +2

    Loved this video! Watching it I had some nice new ideas in mind for my next app. Glad to learn from such pro

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Thank you Davide. Best of luck for your new App.

    • @davidemercadante2406
      @davidemercadante2406 3 ปีที่แล้ว +1

      @@RezaDorrani Thanks. Looking forward to integrating new responsive containers , galleries, html reporting and more advanced gallery layout ( Tiles view) for project management. I hope it won’t be too ambitious

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      @@davidemercadante2406 Not at all. Go for it. Best of luck 🤞

    • @davidemercadante2406
      @davidemercadante2406 3 ปีที่แล้ว +1

      @@RezaDorrani 🤞 I have a question for you if you want to answer. It is related to rotation of new containers. . I am thinking to set up a variable on the OnVisible property for the screen layout depending if Screen.Width is greater than Screen.Height or not and this variable would help defining container layouts, font size and control visibility. What I mean is, that variable might be equal to 1 if width>height, or otherwise 2. This value might be used in other variables n conjunctions with breakpoints values for font size and what to show and what not and also to determine if containers should be vertical or horizontal. What do you think? Might it work? I didn’t test it yet.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      @@davidemercadante2406 That is correct. I use the same technique.

  • @pennyp5822
    @pennyp5822 3 ปีที่แล้ว +1

    Outstanding. Thanks for the great video

  • @ally1708
    @ally1708 2 ปีที่แล้ว +1

    thank you Reza, May God bless u

  • @designmycity
    @designmycity 2 ปีที่แล้ว

    Thank you for this amazing video.

  • @leenashreeindrani532
    @leenashreeindrani532 3 ปีที่แล้ว +1

    Hi Reza,
    Thanks for this video
    Helps a lot... To work in this sort of scenario

  • @alexpena9419
    @alexpena9419 3 ปีที่แล้ว +1

    Fantastic video! You have a gift my friend! One thing though, the validations I added to my form work as far as displaying the error messages is concerned, but it doesn't PREVENT the form from being submitted with errors. In other words, the VALID value of the form does not change to FALSE when there are validation errors. If the errors are backend errors then it prevents the form from being submitted with errors. What am I missing?

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Interesting. Valid should check for required field errors on form as well and not allow submission. I will have to look at your App in action to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com

    • @aamirghanchi9487
      @aamirghanchi9487 2 ปีที่แล้ว

      Alex. you can disable the Submit button as Reza has suggested. This will prevent the form from being submitted with the validation errors.

  • @breadandcheese1880
    @breadandcheese1880 11 หลายเดือนก่อน +1

    Wow Reza -Ji - Thank you so much!

    • @RezaDorrani
      @RezaDorrani  11 หลายเดือนก่อน

      Most welcome ji

  • @tjlee5086
    @tjlee5086 6 หลายเดือนก่อน

    HUGE Thank-you, Sir!

  • @ChrisSimmsJr
    @ChrisSimmsJr 2 ปีที่แล้ว +1

    This is a great video.
    I need some guidance on how to make a field conditionally required if the user uploads an attachment.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      You would need to check count of number of items in attachments control.

    • @ChrisSimmsJr
      @ChrisSimmsJr 2 ปีที่แล้ว +1

      @@RezaDorrani you're the man! I didn't even think to do that SMH 🤦‍♂ Thank you!

  • @reshmakamat4432
    @reshmakamat4432 11 หลายเดือนก่อน +1

    Very useful video

  • @ArohShukla
    @ArohShukla 3 ปีที่แล้ว +1

    Reza, first of all, a VERY HAPPY NEW YEAR TO YOU I hope will make more awesome videos in 2021. you have beautifully explained and its core concepts for the validation controls on Power Apps. Typecasting text field at 5:05, the recommendation of *500 controls* is so valuable at 7:19, use of Coalesce at 7:55 (which I never knew this function exists), usage of regular expressions at 9:48 (need to use for one of the apps 😊 that I am developing), regular expressions with multiple conditions at 13:00, usage of switch function at 14:16 (wow, this is the really cool tip), Data validation at 17:49, Weekday function at 18:46, disabling submit function if the user has filled the required fields at 21:42
    Some quick questions:
    1. Do the 500 controls limit irrespective of specific data sources or its general guidance from Microsoft? What about large media files? Does it include this 500 control cap?
    2. Anyway show/hide part of the form and not just form controls?

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Thank you Aroh. Use of Coalesce is the key to error handling using the existing error message label.
      1 - Media files embedded in App has a 2GB limit.
      500 controls is best practice from MSFT irrespective of data source. You can go beyond but it would start impacting performance.
      2 - Since forms are made up of data cards. You would have to apply ur logic for show hide to each data card. I do plan a video on form control in future. I will think about this and include a technique to simplify show/hide for sections within the form.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      And a very HAPPY HAPPY HAPPY NEW YEAR TO you too my friend

    • @ArohShukla
      @ArohShukla 3 ปีที่แล้ว +1

      @@RezaDorrani awesome 👌 brother

  • @HowToExcelBlog
    @HowToExcelBlog 3 ปีที่แล้ว +1

    Looking forward to seeing this, but to be honest I think I've mostly abandoned using forms and prefer to spend a little more time upfront building my own for the added customization.
    What are your thoughts on forms?

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      I feel forms are powerful and can be customized as needed. I would like to know what sought of customizations you added for which you needed to abandon forms.
      I have a plan next month around a video on forms and how to customize data cards.

    • @kittydoes7600
      @kittydoes7600 3 ปีที่แล้ว

      @@RezaDorrani looking forward to this especially customizing data cards. I've been struggling with data cards!

    • @HowToExcelBlog
      @HowToExcelBlog 3 ปีที่แล้ว +1

      @@RezaDorrani I don't like the ridgid grid so you can't free form place cards.
      Sometimes I want two fields to take up same space as one, or have one field twice the height as others.
      Also, if you want to change the font, or color, or border for a form with 20 fields it's a mega pain.
      Sometimes I've ordered fields and had to reorder them as for some reason they got reset.
      Lots of little things.
      They can be a great option, but most times I've used them in an app, then presented it to the user, they say great but can we have it do x, y and z? Then I go back and try to implement it in the form and it can't be done so I scrap it and build my own.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      @@HowToExcelBlog These are all valid points. And I will consider all of these points when working on my video on the Form Control. Thank you!

  • @thatmattwade
    @thatmattwade 2 ปีที่แล้ว +1

    This was fantastic Reza! One question about improving the UX a bit so it's not so immediate with the HEY YOU DIDN'T DO THIS RIGHT when I may not even be done entering my input. Is it possible to show the red outline and the red warning text after I've completed entering the info? This seems to default to reporting errors live while entering data. I find it super frustrating when I'm still working and a field is yelling at me, but I'm not even done entering my information yet. I'd prefer if it assesses my information after I click out of the field or tab to the next field.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว +1

      Thanks Matt!
      Been a long time for this video but I think you could set a variable on click of submit button. The validation code should also include logic to check if that variable is set (show error message if condition is met and variable is set).
      That ways the error only shows when user submits the form. Prior to that it will not give that “HEY YOU DIDNT DO THIS RIGHT” message :)

    • @thatmattwade
      @thatmattwade 2 ปีที่แล้ว +1

      @@RezaDorrani good idea. I'll try that!

  • @bootsbax
    @bootsbax 3 ปีที่แล้ว +1

    thanks Reza -very useful :)

  • @jaleelahmed2575
    @jaleelahmed2575 2 ปีที่แล้ว +1

    Thanks for the video. I have a small clarification. How to set the formula for the duplicate value, say for e,g If my invoice number is 123 for the particular ID; in case the same invoice number already exist then it should prompt an error that invoice value already exist. Pls help out with the solution.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      For that, you would need to query your datasource to check if duplicate exists. There is a better option though. If your data source is SharePoint you can set column to be unique in the list settings.

  • @abhijityenpure969
    @abhijityenpure969 ปีที่แล้ว +1

    Thanks Reza for wonderful vdo tutorial. I am new to PowerApps and your training has been of immense help. One quick question, I added validations on some of my fields using methods shown here. However onsubmit method on submit button didn't respect these error and went ahead and submitted my request with wrong data to sharepoint list. Do I have to explicitly check if there are any active error messages before making submitform call?

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      Thanks for watching and liking the videos.
      I will have to look at your App in action to provide guidance. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com

  • @nAhmd1
    @nAhmd1 3 ปีที่แล้ว +1

    Hi Rena, thanks for such a helpful video. How can you highlight mandatory fields that are not filled in if you have a multi screen form and you want to highlight these to the user before navigating to the next screen? So your’e not submitting the form, only navigating. Currently I have the navigation button disabled until users fill in all mandatory fields but it would be helpful to highlight these fields as well.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      You would have to add your own label controls to show the mandatory message in that case. It would be more work.
      Better to keep button disabled until all mandatory fields are filled in.

  • @shahvinitshah8892
    @shahvinitshah8892 2 ปีที่แล้ว +1

    Hello Reza firstly thank you so much for uploading the videos which are very helpful.
    In reference to the validation I have a question. The Power App which I am developing. There are two Data Cards in a form connected to the sharepoint list in the backend.
    First Data card has a choice input and the second data card (justification Card) is a multiple lines of input in the same form. The thing I need to validate is the Justification card so when the choice is Yes justification should be mandatory (Required) if the choice is No there is no need of justification required.
    As I also tried " Datacardname.Selected.value = "YES") in the required feild of justification datacard for some reason it is giving me error message "Name isn't valid selected not recognized"
    The video here in shows the expense amount where user enters more than 250 the justification is required how can I deal with the same login when the input is in choice.
    Thanks.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com

  • @samolppp9976
    @samolppp9976 2 ปีที่แล้ว +1

    hi Reza, Thanks for your time and explaining the data validations video. Can you please help , by explaining how to create that DATA VALIDATIONS header title and this good looking form. help is appreciated!

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว +1

      Header title?
      Good looking forms and galleries - th-cam.com/video/aVEaRpAlaTA/w-d-xo.html & th-cam.com/video/bnC8u3gdWss/w-d-xo.html

    • @samolppp9976
      @samolppp9976 2 ปีที่แล้ว

      @@RezaDorrani when i created a simple form, i am not able to re-arrange the controls , say Title , firstname, lastname etc. Do you mean, if i first connect with SPLIst, should i delete all those fields and create new textinput controls from the "Insert" menu/command ? and arrange it?

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว +1

      @@samolppp9976 Check the video link I shared. I show how to rearrange and more.

  • @kmuralikrishna1582
    @kmuralikrishna1582 3 ปีที่แล้ว

    Also, the Border color red keep displaying, when enters into that screen,
    it should display when during submission (when button click)

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      For required field validations just set the required property of data card to true. No need to add Coalesce in that case.
      If you need validations to only run on button click, then do the following.
      Screen OnVisible property set a variable eg. Set(varBtnClick, false)
      Button OnSelect property set variable Set(varBtnClick, true)
      On Coalese functions you will need to also check if this variable is true.

  • @raj7sam
    @raj7sam 3 ปีที่แล้ว +1

    Very useful tricks..
    Is there any other videos by you for handling validation?
    If yes, pls share if possible.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Currently this is the only one focused on validations.
      Many other Apps and flow related videos do have some form of validations in them.

  • @arkabanerjee1587
    @arkabanerjee1587 ปีที่แล้ว +1

    Hello, just one query. How to add the unique constraint validation in Power Apps ?

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.

  • @OpusMagnoCards
    @OpusMagnoCards ปีที่แล้ว +1

    Bravo!

  • @teguhwibowo3086
    @teguhwibowo3086 ปีที่แล้ว +1

    Hi Reza, thanks for the video. It's usefull for me when I start my job now. But, Is the some feature not available for modern view?

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      What is modern view?
      Are you mentioning about modern controls? Most of my recent videos are related to it. I have also shown modern validations.

  • @saravanapriya2171
    @saravanapriya2171 ปีที่แล้ว +1

    Hi Reza..Thanks for your videos. I have a query in data validation..How to validate two different lists and throw a error message if the auto populate column doesn't have the value of another list. Here the auto populate column gets the data from third list

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      Most welcome!
      I do not have a video reference on the scenario you mentioned and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.

  • @juliereutbier6622
    @juliereutbier6622 2 ปีที่แล้ว +1

    Hey this is super awesome and has a lot of uses. I am currently trying to validate if a user enters a date verses using the data picker, that they receive an alert if it is not in the correct format (MM/DD/YYYY). I have validated if MM/DD/YY is input by typing and the form is submitted, there won't be data in the SharePoint list in the date field. I thought a validation might help but all the formulas I have tried don't consistently work. Here is one if you can immediately see something I am off base on - Coalesce(Parent.Error, If(!IsBlank(DataCardValue3.SelectedDate) && !IsMatch(PlainText(DataCardValue3), Digit & Digit & "/" & Digit & Digit & "/" & Digit & Digit & Digit & Digit), "*Be sure to input in MM/DD/YYYY format", "")). I also notice in a lot of your formulas that you don't complete if statements. That has got me in trouble in the past. Do you do to speed up the video or do you truly not complete the formula?

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว +1

      Better option would be to superimpose a label control (empty text) on top of dat picker (text input part) - That way user has to pick date from the picker.
      Can you show me at what time in video where I have not completed if statement?

    • @juliereutbier6622
      @juliereutbier6622 2 ปีที่แล้ว

      Thanks for the quick response! That is a genius idea. Thank you. That was making me crazy. Didn't even think to remove the free text option.
      At 14:17 the true criteria is your error text for true, wouldn't you need a "" to put the blank for the false of the If statement or am I totally off base?

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว +1

      @@juliereutbier6622 I made this video a year ago so do not remember each step, but the formula is fine.
      I always show complete formulas :)

    • @juliereutbier6622
      @juliereutbier6622 2 ปีที่แล้ว +1

      Thanks for confirming and the help!

    • @juliereutbier6622
      @juliereutbier6622 2 ปีที่แล้ว +1

      I totally misspoke and the DefaultResult is optional. Thanks again for the support and ideas.

  • @gouravladha
    @gouravladha 3 ปีที่แล้ว +1

    Hi, Reza, thanks for this wonderful video. I have a scenario where the date condition gets mixed up. I have a single form with add & edit mode. Date condition of today and 90 days is working fine when I create a new record, but in case of editing an old record i.e. of last year, validation kicks in. I am using one variable to set "Add" or "Edit" and want to change the condition to ensure it can work in both cases. Help is appreciated!

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      First, Check form mode. If New then apply the validation else do not.
      Next, if edit mode and value has changed then apply validation. How to check if value changed - compare the the value of the item (ThisItem.Date) with the value updated in the date control on form (DatePicker.SelectedDate). You can also leverage Form.Updates to get some info.

    • @gouravladha
      @gouravladha 3 ปีที่แล้ว

      @@RezaDorrani Great thanks, let me try this

  • @faisalomari7111
    @faisalomari7111 ปีที่แล้ว +1

    Dear Raza, i really love your videos and they are very useful. Would you kindly share with me any videos related to a dropdown field where the user should be able to edit and add data manually in case the choice is not available? ...i am trying to add a dropdown field in my canvas and to allow users to edit and add data also in case that choice is not found..?...in my case, my data source is an excel sheet.

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว +1

      Thank You!
      I do not have any video reference on the dropdown scenario mentioned.
      I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com

  • @vr1085
    @vr1085 3 ปีที่แล้ว +1

    Reza, This is awesome! Thank you! Is there a way to display error message on unique value check before the user fills in all info and clicks the submit button. I was wondering if there is a way to do this without querying back to the data source and instead using sharepoint’s unique validation.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      I did try it and it did not work. Guess, we will have to query the data source.

  • @xingxifahad5355
    @xingxifahad5355 2 ปีที่แล้ว +1

    Hey Reza, This video is of great help. I wonder, if there is any way to invoke/trigger form validation procedure without pressing/invoking SubmitForm() [without using formulas in the onchange/onselect/etc...]

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      I’m not sure about that. May be there is a way.

  • @prasenjitmukherjee5010
    @prasenjitmukherjee5010 3 ปีที่แล้ว +1

    Loved the video as well as your style of teaching also.As I am a new one how can I create a dashboard where I can get an update of all entries at a glance?just like your dashboard(Data Validation).Please guide me Sir.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      I have an upcoming video on this - th-cam.com/video/bnC8u3gdWss/w-d-xo.html

  • @macm7730
    @macm7730 3 ปีที่แล้ว +1

    Hi Reza, Thank you so much for this amazing video(Always like about the small pointers you provide in your all videos). I've a question, currently, I’m trying to apply input validations to the PowerApps which has dropdown(data coming from a List) and submit button. And in second page combobox (field coming from SQL SP). I haven’t use any forms, instead I directly place a control on screen so I don’t have Data cards. So do you think the ideal way for PowerApp UI… is to always use a form and data card etc… so that it makes easier to apply the validation. I’m having hard time in applying required field validation “If combobox/dropdown doesn’t have any value then submit button gives message accordingly… instead of taking to the next page by OnSelect event. Also, I’m not sure how to set a default blank value for the combobox(data coming from SQL)… for the DropDown (coming from a List) I added a first row blank in the actual List for setting up the blank value to the DropDown. Thank you so much for always helping us.

    • @macm7730
      @macm7730 3 ปีที่แล้ว +1

      Reza, also, if you don't have time to write down your thoughts, you can just share a link of your videos/articles... I'll refer and follow that... as I've asked so many questions in one comment...Lol. Thank you again :)

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Wow that's a lot of questions.
      Form control or build your own form using controls is a choice you can make.
      Both approaches work. I more or less always work with the form control.
      To check for empty values, each column type is different so each formulas is different.
      I do not have videos specific to your use case.
      Checking empty in combobox is kind of showcased in this video - th-cam.com/video/5dSk5iOgT68/w-d-xo.html
      I would also recommend you to post your issues on the forums at powerusers.microsoft.com/
      Many a times folks already have solution to common problems on the forums

    • @macm7730
      @macm7730 3 ปีที่แล้ว +1

      @@RezaDorrani Sure, I'll check both the links and other post/article. Thanks for providing your input... Sorry for lot's of question :) I'm working on improving what/how to google for the closest answers/articles for the issues I come across...Thanks Reza :)

  • @marienaalvarez8235
    @marienaalvarez8235 3 ปีที่แล้ว +1

    Great Video as always!!! You are my teacher. Can you advise how I can add default value in a text based on a dropdown selection. But I would like that the default value can be edited by the user. For example: if I select Asset type: Smartphone I would like to predefine a default text in Business Justification for the user to complete, but power app is not saving my changes.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      Check my video on form control - th-cam.com/video/aVEaRpAlaTA/w-d-xo.html

  • @akshay._.solanki
    @akshay._.solanki 2 ปีที่แล้ว

    Hi Reza, Great video as always.
    I have a couple of questions regrading validation which I believe you can help me with. and my data source for the Form is SharePoint list
    1.) How to add validation for a Yes/No choice field. (Example1: If the answer is yes, then only display certain fields after that but If answer is No then skip them)
    2.) How can I add two different attachment questions for a single item in SharePoint using this Form? (It will be fine if they all get saved together in Attachment for a single item in SharePoint but I require it in two different upload question in the Form.)

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      1) is not validation related :) It is to show hide data cards. Check my video on form control th-cam.com/video/aVEaRpAlaTA/w-d-xo.html
      Yes/no columns should be avoided as much as possible. Check rezadorrani.com/index.php/2019/04/14/powerapps-filter-sharepoint-yes-no-column-bug/
      2) There can only be 1 attachment control per form. However, there are some hacks that you can apply. Check th-cam.com/video/hJQjGE-oUpM/w-d-xo.html

  • @vandanpandya9587
    @vandanpandya9587 2 หลายเดือนก่อน

    Thank you Reza for the wonderful tutorial. Just a question. What visible property do you set for errormessage text control?

    • @RezaDorrani
      @RezaDorrani  2 หลายเดือนก่อน

      I must have shown that in video. Please check again.

  • @tonicassis619
    @tonicassis619 3 ปีที่แล้ว +1

    Great video! Can powerapps do validation to make 2 columns unique? I need to lookup a person field and a dropdown to see if it already exists.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      Yes, you will have to query your data source to check if other records with the same combination exist.

    • @tonicassis619
      @tonicassis619 3 ปีที่แล้ว +1

      @@RezaDorrani thank you I did figure it out. Just had to get the syntax right.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      @@tonicassis619 Great

  • @jaytavare1618
    @jaytavare1618 2 ปีที่แล้ว +1

    Hi Reza, Thank you so much for creating the wonderful videos, it helps a lot for a beginner to work on PowerApps. But I have a question on this, if form is already submitted the user should not be able to submit the same form on same date?

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com

    • @jaytavare1618
      @jaytavare1618 2 ปีที่แล้ว +1

      @@RezaDorrani Thank you sir, but I found a way to overcome this, if we lookup for current user and datepicker.selecteddate we can do it.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      @@jaytavare1618 👍

  • @annettemassie1962
    @annettemassie1962 7 หลายเดือนก่อน

    Love this video. I do have a question. In the section where you use the DisplayMode to disable the submit button based on the condition if your error.text fields are not blank, could you updatecontext or set a variable at the same time when creating the error message. Then use only one "if" condition on the DisplayMode of the submit button based on if the variable was true or the updatecontext was true. Would that work? Would you have code to support that?

    • @RezaDorrani
      @RezaDorrani  7 หลายเดือนก่อน

      Have not tried it so not sure. Give it a try and see if it works.

  • @chethanc5229
    @chethanc5229 2 ปีที่แล้ว

    Thanks Reza. As suggested in this Video, I made a field (say Comments) mandatory when choice field is with certain values,. But, for some reason i dont see error message being displayed, instead i only see (*) next to the Comments card. Also, Submit button doesn't stop me from submitting. I am using PATCH function to update all the forms to the Sharepoint List

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      I will have to look at your app in action to provide guidance. I will recommend posting your issue with screenshots on the forums powerusers.microsoft.com

  • @pankajupadhyay5356
    @pankajupadhyay5356 2 ปีที่แล้ว +1

    Very Nice Vedio Reza. I need to check with you is any way that that i can compare the value of Text Box with the list LOV ( may in in the Excel or sharepoint ) ?

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      For that you would need to query your data source to get the value to compare.
      You could use lookup function to get the record and then the column value to compare.
      Example: lookup(data source, condition).column

  • @mohammadanwar1304
    @mohammadanwar1304 3 ปีที่แล้ว +1

    Nice video. Just want to know is there a validation for only Letter and/or Number ? Special characters are not allowed

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      IsMatch(
      YourText,
      "^[a-zA-Z0-9]*$"
      )

    • @mohammadanwar1304
      @mohammadanwar1304 3 ปีที่แล้ว +1

      @@RezaDorrani Thanks Reza

  • @rebeccamayer3602
    @rebeccamayer3602 5 หลายเดือนก่อน

    Thanks for the video, struggling with my data validations still.
    I have a multi tab form and want to make some fields mandatory. I tried setting ‘required’ field to “true” within properties.. this gives me an asterix next to the Card but does not enforce the field as mandatory?
    Any ideas would be greatly appreciated!

    • @RezaDorrani
      @RezaDorrani  5 หลายเดือนก่อน

      I have not experienced the mentioned issue and hence not sure what the cause for it could be.
      I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com

  • @mariodamore5210
    @mariodamore5210 3 ปีที่แล้ว

    Hi Reza, thanx for the video. Is there a way to check the entire forma for error instead to check every error field?

  • @haravindhv616
    @haravindhv616 3 ปีที่แล้ว

    Can u prepare an video on update context
    In which refresh is to be used for updating the context

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว +1

      You mean the local variable function updatecontext?

  • @alainpitau1870
    @alainpitau1870 ปีที่แล้ว

    Hi Reza you did as usual a great video i really nice. This is a question for you. How could you delete "Error data card" and handle this part on the field label. The goal is to decrease count control. I already replace "is require *" by your technique. Thank you

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว +1

      For that I would keep error label and only remove star label

  • @marieraymond6512
    @marieraymond6512 2 ปีที่แล้ว +1

    HI Reza, This is good stuff. The only thing is that I cannot seem to create the correct syntax for matching a Project Title that is in a card with a text control. I tried several of the IsMatch options, but my custom error message shows all the time when I edit an item.

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      Text control has pattern or value?
      Im assuming you would want to compare values.

    • @marieraymond6512
      @marieraymond6512 2 ปีที่แล้ว

      @@RezaDorrani a string, for example, MondayTest 12-5-22

    • @marieraymond6512
      @marieraymond6512 2 ปีที่แล้ว

      Coalesce(
      Parent.Error,
      If(
      !IsBlank(DataCardValue1.Text) && !!IsMatch(
      DataCardValue1.Text,
      MatchOptions.Complete
      ),
      "This title already exists"
      )
      )

    • @marieraymond6512
      @marieraymond6512 2 ปีที่แล้ว

      Correction: Coalesce(
      Parent.Error,
      If(
      !IsBlank(DataCardValue1.Text) && !IsMatch(
      DataCardValue1.Text,
      MatchOptions.Complete
      ),
      "This title already exists"
      )
      )
      only 1 exclamation point, still showing an error

    • @RezaDorrani
      @RezaDorrani  2 ปีที่แล้ว

      @@marieraymond6512 IsMatch is to match pattern NOT value.
      You could directly compare values like
      DataCardValue1.Text = txtBoxControl.Text

  • @gayathrireddy6639
    @gayathrireddy6639 3 ปีที่แล้ว

    Hi I have a date picker for searching the data but the picker is not working for previous year. only picking the current year can you please guide me how to resolve this

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      I will have to look at your App in action to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com

  • @terencealmeida4594
    @terencealmeida4594 3 ปีที่แล้ว

    Hello Reza,
    Thank you for your video, could you please share your views on the function that can be used if we need to provide an error on the date field if the user selects 5 days earlier than today's date & if the user selects any date after today date i.e. restrict the user to update the form within only 5 days including today's date.

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      You would need to use the date functions and compare the dates.
      DateAdd and DateDiff.
      I have seen a few posts around this on the forums at powerusers.microsoft.com

  • @leenashreeindrani532
    @leenashreeindrani532 3 ปีที่แล้ว

    Hi Reza,
    This video helped me to achieve my project requirements.
    There is one requirement as below
    When user enters his/her mail id in a person datatype(Account Email) field that need to get populated in another person datatype column(Account Email Contact Name) field in powerapps..
    Could you please share me that with an example.
    Hi Reza, given a datacardvalue as per your assistance in the default card it worked 😊

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      A person column (assuming your data source is SharePoint) - if you need to just copy the data over to another field you can just set the default property of the data card. No validations required there.
      Person column is special type and expects a particular format as follows:
      rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/

    • @leenashreeindrani532
      @leenashreeindrani532 3 ปีที่แล้ว +1

      @@RezaDorrani Hi Reza,
      Thanks for quick response 🙂
      Will look into it

  • @kkb92-96x
    @kkb92-96x 3 ปีที่แล้ว +1

    Reza, Thanks again for the great tutorials. I was wondering if there is something similar to Page.IsValid (in asp.net) rather than checking each and every control in the if statement? (especially for a form with lots of controls). Or also like in erstwhile VB, can we have all the error label named the same thing (this can be a workaround to the problem)?

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      There is a Form.IsValid property but goal here it to show the error messages on the fly as user makes the updates. Moreover, we are adding additonal validation logic to the data cards of the form control which are not part of the backend data source.

    • @kkb92-96x
      @kkb92-96x 3 ปีที่แล้ว

      @@RezaDorrani I get that, I was only wondering from the perspective of Submit button enabling and disabling.

    • @ashokpershad
      @ashokpershad 3 ปีที่แล้ว +1

      Great video...very useful

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      @@ashokpershad Thank you

  • @bharatishukla1358
    @bharatishukla1358 ปีที่แล้ว

    Thanks a lot Reza, this is very useful! However, I am facing one issue. Whenever I use edit mode in displaymode of save button, there is a new version of the item created in the SP list. The first version has all the correct entries. But in the new version of the item, one of the required fields starts displaying empty value and this stops the workflow from running in the back end. Can you please help me out?

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      I would have to look at your app in action to know the reason for your issue. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com

    • @bharatishukla1358
      @bharatishukla1358 ปีที่แล้ว

      @@RezaDorrani Sure, thank you, will do so. Did not expect to get a reply this early on TH-cam 😄

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      @@bharatishukla1358 😊

    • @bharatishukla1358
      @bharatishukla1358 ปีที่แล้ว

      @@RezaDorrani done!

  • @Spardan20
    @Spardan20 ปีที่แล้ว

    I have created a simple form for my stakeholders to provide project information so that will be stored in a share point list. But for some reason, the validation does not work on the submit button, even after I make those columns as a required field. The user can enter one piece of data and click submit or just fill in one field and click on submit. The form success screen is coming either way. Please suggest. This is the formula that i have used.
    SubmitForm(Form1);Navigate(Screen2)

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว +1

      I have not come across this issue and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com

  • @hasanahmad
    @hasanahmad ปีที่แล้ว

    I have a required field set in sharepoint and also a required field on the edit form but when I click submits without validation

    • @RezaDorrani
      @RezaDorrani  ปีที่แล้ว

      I have not come across this issue and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com

  • @shakadezulu8615
    @shakadezulu8615 3 ปีที่แล้ว

    Great video. Any thoughts on how based on a data card value, I can prevent users from editing the list item in sharepoint? For example, if status of request is closed, the edit button is disabled to users but can be available to admins

    • @RezaDorrani
      @RezaDorrani  3 ปีที่แล้ว

      I have 2 videos which will cover your use case. Watch both of them.
      th-cam.com/video/aVEaRpAlaTA/w-d-xo.html
      th-cam.com/video/J-hMMXrKMVE/w-d-xo.html

  • @SAULSM17
    @SAULSM17 3 ปีที่แล้ว +1

    Gracias!!!