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 / Form submit fails on r...
Power Apps
Unanswered

Form submit fails on required field that IS populated

(0) ShareShare
ReportReport
Posted on by 2

I've a silly problem with a form, which I can't seem to get to the root of.

 

The form has a field, RowID - it's a GUID, the key of the underlying SQL Server table.  Before opening the form in 'new' mode, I set a variable to GUID() and the default of value of the RowID card tests the form mode and picks up that variable value.  I can see the GUID in the field on the form when it opens.

 

When I SubmitForm() the form, the app tells me that 'RowID is required'.  The field is populated; I can see the value!

 

Why does it think the field isn't populated? 

 

I've also tried Set(ThisItem.RowID) before SubmitForm() in the save action, but that just gives code check errors.

 

Thanks!

 

The 'New' button that opens the form has this code:

 

ResetForm(Form_PartnerEdit);
Set(NewRowID,GUID());
NewForm(Form_PartnerEdit);
Navigate(Screen_PartnerEdit);

 

and the 'RowID' card's default is this:

 

If(Form_PartnerEdit.Mode=FormMode.New, NewRowID,ThisItem.RowID)

 

 

RowID sillyness 1.PNG
Categories:
  • Feiteira Profile Picture
    199 on at

    Hi there @JeffLon,

     

    What is you Data Source? Dataverse?

    Why do you need that GUID field?

  • JeffLon Profile Picture
    2 on at

    The info's in the post. It's SQL Server and the guid column (unique identifier type) is the primary key of the table.

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