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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / required control set t...
Power Apps
Answered

required control set to false, cannot submit form

(0) ShareShare
ReportReport
Posted on by 33

hello, 

 

due to security issues, I cannot screenshot anything (even with blocking information). 

 

I have a sharepoint list - it has no required fields.

The corresponding app form is in formmode.new

There are about 15 cards and I have narrowed the issue down to 3. 

The first card is a combobox with ["1", "2", "3"] as my choices - It is a choice column on my sp list

The second card is a people picker. The card works fine. I have it visible if "1" in combobox.Selected.Value and it works. 

The third card is a date picker. Again, it works fine and the same visibility as above.

The second and third card has the same requirement: if("1" = combobox.selected.value, true, false)

This is where it does not work.

 

I set up the submit button to mode.edit when the form is valid and with 1 selected, and people/date picker empty, it shows it is invalid. i put stuff in and can submit. If I select 2 or 3, it does not show the people nor date picker, and it shows form is valid yet I cannot submit. I made the cards visible without condition, selected 2 or 3 and still had to fill out the cards in order to submit.

 

I have been at this for a while. I did have to do an onchange for the combobox that said Set(ResetNameControl, true), Set(ResetDateControl, true),... as it was saving the name and date when tester swapped 2 or 3 for 1.

 

Before doing that change, I still had the above problem. 

 

Any help will be appreciated. Thanks. 

 

network error when using patch function: the requested operation is invalid

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at

    Hi,

     

    Please follow these instructions and it will help us figure out what is wrong.

    Step 1. Close your App (stop it running)
    Step 2. Click the Stethoscope in the Top Right
    Step 3. On the bottom click Open Monitor
    Step 4. Once Monitor is running go back and run your app
    Step 5. Cause your issue to happen
    Step 6. Close the app
    Step 7. Go to the Monitor and Filter (top right) based on Error

    Step 8. Go to line it finds (might be more than 1) but  you need the Response Tab, expand the > (for Body), it will tell you exactly what field is doing what.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • aliciaf Profile Picture
    33 on at

    that is a great tool! I will surely use it instead of pulling hair out next time!

     

    I narrowed it down with this tool. It is not my date picker. The problem is with the people picker.

    I set both to required: false and I was able to save/submit without the date.

    The debugging was restating the "specified user cannot be found" with the claims I:0#.f|membership| specifically.

     

    In the people picker I have two areas that use the claims

    Items: Office265Users.SearchUserV2({searchTerm:Self.SearchText, top:30}).value

    InputTextPlaceholder: "Search on name such as: " & Office365Users.Manager(Office265Users.MyProfile().Mail).DisplayName

    SearchFields: ["DisplayName"]

     

    In the DataCard itself,

    Update:

    {

    Claims: "i.0#.f|membership|" & DataCardValue127.Selected.Mail,

    Email: DataCardValue127.Selected.Mail,

    DisplayName: DataCardValue127.Selected.DisplayName,

    Department: "",

    JobTitle: "",

    Picture: ""

    }

     

    I think there is my issue, but not sure how I fix that or even why i did it that way in the first place. 

  • Verified answer
    aliciaf Profile Picture
    33 on at

    Well. it worked. I removed the "i.0#.f|membership|" & part and just kept the datacardvalue127.selected.mail.

     

    Thanks for the super helpful hint. I am used to hard coding for over 2 decades, so no-code/low-code is sort of out of my wheelhouse especially with debugging. Which we all know if half if not more than half the battle.

  • Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at

    Hmm so no credit to the person who taught you to find it. /sigh lol

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard