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 / 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

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 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard