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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Submit Form If require...
Power Apps
Answered

Submit Form If required fields are filled then naviagte

(0) ShareShare
ReportReport
Posted on by 53

When building my power apps, I noticed that it didn't matter if I filled the "required" fields or not. Power Apps always navigated me to the "End Screen". The form itself was not submitted.

My question now is, how do I build a formula so that Power Apps only navigates the user to the "end screen" when the "required" fields are filled and not left empty?

 

I don't need anything complex, just something to show the User that he missed required fields and is able to fill them.

 

Current Formula:

 

SubmitForm(['EditForm NSI']);;
Navigate('End Screen');;
Fade

 

 

I also tried to use this formula:

 

If(
 EditForm NSI.Valid && 
 DataCardValue12_2.Text <> "" &&
 DataCardValue18_2.Text <> "" &&
 DataCardValue20_2.Text <> "" ,
 SubmitForm('EditForm NSI');
 NewForm('EditForm NSI');
 Navigate('EditForm NSI'),
 Notify("Please enter the Required fields",NotificationType.Error);
 Navigate('End Screen') 
)

 

 But it didn't work.

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @KT03 ,

     

    If your DataSource has required fields then it will show in the form.

    For non-required fields from DataSource.

    Don't use the formula to calculate manually if field is filled or not.

     

    Click on the DataCard of the fields you want to mark as Required.

    Navigate to field's advance option on the right of the screen.

    Unlock the DataCard (if prompted)

    Search Required property and set it as true

     

    Now you will have '*' mark in your form.

     

    If you do not insert values within the fields. Form won't submit and show error.

    --------------

     

    Now, If you still need some manual checking

    Use formula as such,

    !IsBlank(DataCardValue1.Text) or DataCardValue1.Text = Blank() then proceed with the code. 

     

    For Example;

     

    //From your code
    
    If(DataCardValue12_2.Text = Blank(), //code here if true, //code here if false)
    
    or
    
    If(!IsBlank(DataCardValue12_2.Text), //code here if true, //code here if false)

     

     

    Hope this helps.

     

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @KT03 ,

     

    Try below code if it helps. 

    if( EditForm NSI.Valid || IsBlank(DataCardValue12_2.Text) ||
     IsBlank(DataCardValue18_2.Text) ||
     IsBlank(DataCardValue20_2.Text), Notify("Please enter the Required fields",NotificationType.Error);Navigate('End Screen') ,SubmitForm(['EditForm NSI']);
    NewForm('EditForm NSI');
     Navigate('EditForm NSI'))
    
    
    OR
    
    if( EditForm NSI.Valid || IsBlank(DataCardValue12_2.Text) ||
     IsBlank(DataCardValue18_2.Text) ||
     IsBlank(DataCardValue20_2.Text); Notify("Please enter the Required fields",NotificationType.Error),Navigate('End Screen') ;SubmitForm(['EditForm NSI']),
    NewForm('EditForm NSI'),
     Navigate('EditForm NSI'))

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • KT03 Profile Picture
    53 on at

    Hello @PriyankaGeethik i am still receiving issues 

    KT03_0-1632226197210.png

    any suggestions?

     

     

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @KT03 

    What is the error message ? Can you check if comma or semicolon issue there ?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @KT03 ,

    from your error message,

    Notify(<text> , <type>) there's a comma and not semi-colon.

     

     

    If(
     EditForm NSI.Valid && 
     !IsBlank(DataCardValue12_2.Text) &&
     !IsBlank(DataCardValue18_2.Text) &&
     !IsBlank(DataCardValue20_2.Text) 
     ,
     SubmitForm('EditForm NSI');
     NewForm('EditForm NSI');
     Navigate('EditForm NSI')
     ,
     Notify("Please enter the Required fields",NotificationType.Error);
     Navigate('End Screen') 
    )

     

     

  • KT03 Profile Picture
    53 on at

    I am from germany, as soon as i use "," it is shwoing an error Massage, so i use ";".

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Any of below code works in your case without any error notification ? 

     

    if( EditForm NSI.Valid || 
     IsBlank(DataCardValue12_2.Text) ||
     IsBlank(DataCardValue18_2.Text) ||
     IsBlank(DataCardValue20_2.Text); 
    	 Notify("Please enter the Required fields",NotificationType.Error),Navigate('End Screen') ;
    	 SubmitForm(['EditForm NSI']),
     NewForm('EditForm NSI'),
     Navigate('EditForm NSI')
    	
    	)
    	
    
    OR	
    	
    	
    	If(
     EditForm NSI.Valid && 
     DataCardValue12_2.Text <> "" &&
     DataCardValue18_2.Text <> "" &&
     DataCardValue20_2.Text <> "" ;
     SubmitForm('EditForm NSI'),
     NewForm('EditForm NSI'),
     Navigate('EditForm NSI');
     Notify("Please enter the Required fields",NotificationType.Error),
     Navigate('End Screen') 
    )

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • KT03 Profile Picture
    53 on at

    I am still not able to use the Formulas because of the "," i tried the second one with ";" and it didn't show any error Notification but it is not saving or redirecting the User.

     

    KT03_1-1632301946291.png

     

  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @KT03 ,

     

    Try below code if it helps. 

     

    if(EditForm NSI.Valid && !IsBlank(DataCardValue12_2.Text); SubmitForm('EditForm NSI');;
     NewForm('EditForm NSI');;
     Navigate('EditForm NSI');Notify("Please enter the Required fields",NotificationType.Error);;Navigate('End Screen') )

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard