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 / Fields requiring selec...
Power Apps
Answered

Fields requiring selection before form can be submitted

(0) ShareShare
ReportReport
Posted on by 1,176

Hi,

I have a form with three drop down boxes.  The details of the drop down boxes are hard coded in to the the fields, 'Items' property.
1st two drop downs have Yes, No.  The third has numbers 0 to 10

ClarkyPA365_0-1654071037940.png


I've used the function 'AllowEmptySelection'.  Not sure if this should be used??

What I require is that the three boxes have one of the options selected before the form can be submitted, so required.  An error message appears advising what field(s) need completing before the form can be submitted.

I've made them required function 'true'
Any assistance would be grateful

Categories:
  • WarrenBelz Profile Picture
    156,926 Most Valuable Professional on at

    Hi @ClarkyPA365 ,

    AllowEmptySelection is fine - it allows no value to be initially displayed. Just set the Data Card Required to true

     

    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.

    Visit my blog Practical Power Apps

  • Chris1968 Profile Picture
    1,176 on at

    Hi Warren,

    I've done that but it still lets me click on the Save & Submit button and no error message appears 

    ClarkyPA365_0-1654078570154.png


    I added this in.  The error banner appeared for the first field but then the form was submitted and the success banner appeared??

    ClarkyPA365_1-1654078710135.png

     

  • Verified answer
    WarrenBelz Profile Picture
    156,926 Most Valuable Professional on at

    Hi @ClarkyPA365 ,

    Forget about the required as you have allowed for this in your code. The issue was around your bracketing as the Patch ran regardless of the tests. Also note SelectedText is Deprecated - use Selected. Also watch spelling as I had to OCR your post (please remember to post code in Text)

    If(
     IsBlank(SupervisionReceived.Selected.Value) || 
     IsBlank(Safegaurdinglssues.Selected.Value) || 
     IsBlank(SupervisionBeneficial.Selected.Value),
     Notify(
     "All dropdowns cannot cannot be left Blank. Please select one of the options",
     Error
     ),
     Patch(
     'Clinical Supervision',
     LookUp(
     'Clinical Supervision’,
     ID = Value(Subtitle4.Text)
     ),
     {
     Status : Status.Text,
     'Supervision Beneficial': Value(SupervisionBeneficial.Selected.Value), 
    	 'Safeguarding Issues': Safegaurdinglssues.Selected.Value,
     'Supervision Received': SupervisionReceived.Selected.Value,
     Feedback: Feedback.Text,
     'Supervision Type': SupervisionType.Text
     }
     );
     Notify(
     "Clinical Supervision Feedback Forml",
     Success,
     5000
     );
     Navigate(NotCompleted)
    )

     

    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.

    Visit my blog Practical Power Apps

     

  • Chris1968 Profile Picture
    1,176 on at

    Hi Warren,

    Thank you once again for your help 😊

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard