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 / In a form a pre define...
Power Apps
Unanswered

In a form a pre defined value

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I'm building an app and it goes quite well, but now I've an issue.

Have made an add form (Form_Add_VKO_Reg). In that form one of the fields is the SalesOrderNumber. I don't want that to be an option for the user. That field has to be filled on default by the selected value in a Gallery (Gallery_VKO).

Have used the following code in the default of the datacard: Gallery_VKO.Selected.SalesOrderNumber. It gives actually the number in the textfield, but keep getting an error on the Update of the DataCard: Expected Record value. 


Does anyone has a solution?

 

Thanks!

Pieter

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    That field is not by chance a Lookup is it? That would want a record. You could just use the default value the form has for that field and make the field display property "View" - that way the user would see it but could not change it.

  • BodemWeter Profile Picture
    on at

    Hi, yes it is a lookup! When I make it a dropdown and set the default with the formula it gives an error too! 

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Add a text field. Use the same code for that - Gallery_VKO.Selected.SalesOrderNumber. Make that text box mode View. Delete the original field, since the Update is now messed up. Go to the "Edit Fields" control on the right side of the interface and re-add the field. Set the visible property to false.

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
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard