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 :
Power Apps - Building Power Apps
Answered

New User Registration without Forms and Notify Admins about new users

(0) ShareShare
ReportReport
Posted on by 986

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.

I have the same question (0)
  • Akser Profile Picture
    1,546 Moderator on at
    Re: New User Registration without Forms and Notify Admins about new users

    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. 
  • Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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.

  • Akser Profile Picture
    1,546 Moderator on at
    Re: New User Registration without Forms and Notify Admins about new users

    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. 

  • Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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

  • Akser Profile Picture
    1,546 Moderator on at
    Re: New User Registration without Forms and Notify Admins about new users

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

  • Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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

  • Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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.

  • Verified answer
    Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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.

  • Verified answer
    Sidhant_02 Profile Picture
    986 on at
    Re: New User Registration without Forms and Notify Admins about new users

    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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 632 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 386 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 245 Moderator

Last 30 days Overall leaderboard