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 / Add Required Multiple ...
Power Apps
Answered

Add Required Multiple Required Fields - OnSubmit - Form

(0) ShareShare
ReportReport
Posted on by 56

I have multiple required fields on a single card. 

ezgif.com-gif-maker.gif

I use this formula, but it's still submitting the form. 

 

 

If( IsBlank(DTRLoc.Selected.Result) && IsBlank(RadioTimeInOut.Selected.Value) && IsBlank(RecordTimeLoc.Text), Notify(" Missing Info. Check your Time Details"), 
) ; 

 

 

What I am trying to do, is if one or more fields is blank, display notification. Else if all is not blank, submit the form.

 

 

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

    Hi @BIBC-IT ,

     

    Slight modification to the formula. Try below one. Hope it helps. 

     

    If( IsBlank(DTRLoc.Selected.Result) || IsBlank(RadioTimeInOut.Selected.Value) || IsBlank(RecordTimeLoc.Text), Notify(" Missing Info. Check your Time Details"), Your submit code here
    ) ; 

     

     

     

  • BIBC-IT Profile Picture
    56 on at

    Thank you, I use the code below and it is now working.

     

    If( IsBlank(DTRLoc.Selected.Result) || IsBlank(RadioTimeInOut.Selected.Value) || IsBlank(RecordTimeLoc.Text), Notify(" Missing Info. Check your Time Details"),
    
    SubmitForm(DTRForm) ;
    UpdateContext({varAMIN: Blank()}) ;
    ) ;

     

     

  • Verified answer
    BIBC-IT Profile Picture
    56 on at

    Hi, I modified it a little and added a little dialog box. What I did is I change the notify to a little dialog box.

     

    If( IsBlank(DTRLoc.Selected.Result) || IsBlank(RadioTimeInOut.Selected.Value) || IsBlank(RecordTimeLoc.Text), 
    UpdateContext({showPopup:true});
    SubmitForm(DTRForm) ;
    UpdateContext({varAMIN: Blank()}) ;
    ) ;

    On my example I did not select a DTRLoc, it shows the dialog but still submits the form.

     

    ezgif.com-gif-maker (1).gif

    Now it displays the dialog box, but still submits the form. What I want is if one the field is blank, the dialog will show so the users will know what they are missing, to close the dialog I added a button else if the fields are selected properly, Submit Form will apply.

     

     

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

    Hi @BIBC-IT ,

     

    I think below formula might help in your case. 

    If( IsBlank(DTRLoc.Selected.Result) || IsBlank(RadioTimeInOut.Selected.Value) || IsBlank(RecordTimeLoc.Text), 
    UpdateContext({showPopup:true}),
    SubmitForm(DTRForm) ;
    UpdateContext({varAMIN: Blank()}) ;
    ) ;

     

     

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard