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 / If user submits newfor...
Power Apps
Suggested Answer

If user submits newform it deletes combobox values then fails required field

(0) ShareShare
ReportReport
Posted on by 77
There are no default values or anything its super confusing it seems to happen to only the boxes that are lookup fields the choice boxes don't seem to have an issue. 
The save button is just submitform(formname) and then shows the please wait with a context variable.
I have 4 other forms in my app and none of them seem to have this issue. 
Also the form works normally in edit mode, but i do see it glitch out for a seconds and remove the selected items for a split second before saving. 
 
Edit: There seems to be an issue with the Field disambiguation it isnt loading properly. 
I attempted to recreate the form with a container and it will not grab any of the lookup fields with the tablename[@fieldname] format. 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    Hi @TrevorMorrice​​​​​​​​​​​​​​
    Some information required here
    • The Item of the Form
    • The code OnSelect of the Save button
    • The Items, DefaultSelectedItems and DisplayFields of the Combo Boxes and whether they are Modern or Classic controls
    • The names and types of fields you are writing back to
  • TrevorMorrice Profile Picture
    77 on at
    Hi @WarrenBelz the item is a context variable selected from a gallery that is linked to dataverse. 
    It works perfectly on EditForm()
    The save button is simply SubmitForm(formname)
    There is something wrong with my data source connection it is failing with forms
    Not sure what you mean with the other requests...its a form it supposed to just do the work for you but it rarely does.
    I tried to use both modern and classic. 
    I ditched the form and went with just manual container and fields with a patch. 
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    Your issue is probably that you are not updating the Context Variable, so if you did this OnSuccess of the Form
    UpdateContext({YourVariableName: Self.LastSubmit})
    it should show the updated values.
     
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • TrevorMorrice Profile Picture
    77 on at
    @WarrenBelz Its not getting to the onsuccess its failing. 
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    What error message are you getting ? Did you try a monitor session to see  what is happening ?
  • Suggested answer
    TrevorMorrice Profile Picture
    77 on at
    Its the same error message id get if had just submitted it without making a selection. 
    Just missing required field.
    For some reason when i hit submitform on formode new it clears all comboboxes. 
    For some reason when i hit submitform on formode edit it works.  
     
    We can stop this madness I quit using forms now for good, the modern form with the AI guessing fields added 200 controls to my screen alone :( 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard