cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sidhant_02
Post Prodigy
Post Prodigy

New User Registration without Forms and Notify Admins about new users

Hi everyone,
I was designing the new user registration form, so here instead of using the edit form I was using the text input and labels:
Login Page:

Sidhant_02_0-1674122434432.png

New User Registration Page (Screen 2):

Sidhant_02_1-1674122515969.png

Data Source (SharePoint List):

Sidhant_02_2-1674122576371.png

So On-Select of the submit button I have used the Patch function to save the data in my Sharepoint list (Login list), so is it correct?:

Sidhant_02_3-1674122644791.png

My queries were as follows:
1- Like in Edit forms we have an option of OnSucess which checks if the data is submitted properly or not if I want to check the same for all these values how to do it?.

2- How to check if any field is not left blank, if it is user cannot submit the data unless all the fields are filled in?.
3- After user enter their details, an email should be sent to the admin notifying that a new user has registered, how to do it?


Regards,
Sidhant Dorge.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Sidhant_02
Post Prodigy
Post Prodigy

I was able to Reset the values of all the text Input box for which I did the following:
1. Created a variable using UpdateContext method on OnVisible property of the screen in which I want the controls to be reset:
UpdateContext({resetControls: true})

2. Then Added a toggle and set its default value to the newly created variable and OnCheck property set the variable to false.
UpdateContext({resetControls:false})

3. Then Set the default values of the input text fields to empty i.e. "" and on Reset property pointed out to the toggle control value like: tglControl.Value (where tglControl is the toggle name that I have added)

Text Input fields with Values:

Sidhant_02_0-1674210053069.png

 


After going back and revisiting:

Sidhant_02_1-1674210102471.png

All the text fields are reset.

View solution in original post

Sidhant_02
Post Prodigy
Post Prodigy

To make the button disabled, until the user enters information in all input boxes. In the buttons display mode, I have added the IsBlank property where in I am checking all the fields which should not be blank and to compare multiple text input fields I have used the || (OR operator).

Sidhant_02_0-1674464453791.png

 

View solution in original post

9 REPLIES 9
Akser
Super User
Super User

Hi @Sidhant_02 ,

 

  1. Several ways to do that:
    1. You can use IfError
    2. Or you can store the response of the Patch action in a variable and do your check against it
      Set(varNewRecord, Patch(...))
  2. Set the 'DisplayMode' of the button based on a condition:
    1. If(TextInput1.Text <> Blank() And TextInput2.Text <> Blank(), DisplayMode.Edit, DisplayMode.Disabled)
  3. When the user enters their details, it will create a record in SharePoint. You can built a PowerAutomate for that list that will be triggered when a new record is created and add a 'Send an Email' action in your PowerAutomate Flow. 

Hi @Akser ,
I opted for the 1st method using IfError:

Sidhant_02_1-1674128288905.png

 

Is this ok? (Submit:OnSelect).
And for the visibility of the Submit button:

Sidhant_02_2-1674128762866.png

But on running the application the Submit button is still being displayed:

Sidhant_02_3-1674128890401.png

 

Regards,
Sidhant.

Not sure why the button does not get disabled. Try 'Trim':

 

If(
Trim(TextInput1.Text) = Blank() Or Trim(TextInput2.Text) = Blank(),
DisplayMode.Disabled,
DisplayMode.Edit
)

 

 

Did you get an answer to your initial question? If yes, please mark the solution so others can benefit from it. 

Thanks @Akser ,
Using trim function the submit button is getting disabled now. Thanks for the solution. For Email part what should be the steps that I should follow now: as you know the structure it would be helpful if you can mention any articles or videos that can meet my need or you can mention the steps in this post itself.

Sidhant_02_0-1674131644182.png

 

Regards,
Sidhant

That's a common use case @Sidhant_02, I'm sure a quick Google search will point you to the right direction.

Okay, I will search on Google for it and test this functionality once and Accept the solution (if there no more issues for the first part)

Regards,
Sidhant

Hi,

Yesterday the button was getting disabled so today after entering all the details the button was not visible (clickable) so I had to make one change that is interchanged the Edit and disabled mode (as you have given above), but now the issue is that the Submit button is displayed even when all the text input fields are empty except Date (which takes the current date, and that I have not added in the Display mode property)

Sidhant_02_0-1674195120522.png

Sidhant_02_1-1674195180662.png

Also another thing that I wanted to ask is on clicking of the back button I wanted to reset all the text input fields, so for that I created a UpdateContext variable on the back button and submit button then for the default property for all the text input fields used the same variable name

Sidhant_02_2-1674195306526.png

Sidhant_02_3-1674195340438.png

But on click of the back button and then returning to the New Registration screen, text fields are not getting reset
I referred the answer from :

Sidhant_02_4-1674195413452.png

 

Link: https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-clear-text-input-fields/td-p/40482
And the other problem is I entered few details in the screen and when I submitted the details were saved:

Sidhant_02_0-1674200796167.png

 

Sidhant_02_1-1674200830680.png

 

This should not be saved right if any field is blank user should not be directed to Success screen (here Confirmation) and the details should not be saved in the SharePoint list.

Please let me know what is the issue and the solution.
 

Regards,
Sidhant.

Sidhant_02
Post Prodigy
Post Prodigy

I was able to Reset the values of all the text Input box for which I did the following:
1. Created a variable using UpdateContext method on OnVisible property of the screen in which I want the controls to be reset:
UpdateContext({resetControls: true})

2. Then Added a toggle and set its default value to the newly created variable and OnCheck property set the variable to false.
UpdateContext({resetControls:false})

3. Then Set the default values of the input text fields to empty i.e. "" and on Reset property pointed out to the toggle control value like: tglControl.Value (where tglControl is the toggle name that I have added)

Text Input fields with Values:

Sidhant_02_0-1674210053069.png

 


After going back and revisiting:

Sidhant_02_1-1674210102471.png

All the text fields are reset.

Sidhant_02
Post Prodigy
Post Prodigy

To make the button disabled, until the user enters information in all input boxes. In the buttons display mode, I have added the IsBlank property where in I am checking all the fields which should not be blank and to compare multiple text input fields I have used the || (OR operator).

Sidhant_02_0-1674464453791.png

 

Helpful resources

Announcements

Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!  

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

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