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 / Field with Default Val...
Power Apps
Unanswered

Field with Default Value (Non-Editable)

(0) ShareShare
ReportReport
Posted on by 1,265

I have a form "frmIDEntry" where the AssignedTo field defaults to a value "---" in the Power App.  After the record is submitted, the default value does not save and display in the gallery.  Do I need to perform other functions to save the default value?   

 

RJF61_0-1669651612877.png

As a side note, I do not want the initial User (entering a record) to change the AssignedTo default value.  Can this be accomplished by making the Card Visible value = false yet save the default value)?

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @RJF61 ,

    Firstly, it should save providing the Update of the Data Card is correct. If you want it to definitely save on new records and hide the Card  - make the Visible of the Data Card

    YourFormName.Mode <> FormMode.New

    then the Update of the Data Card (I have assumed the output as .Value here)

    If(
     Self.Visible,
     ComboBoxName.Selected.Value,
     "----"
    )

     

    Please click Accept as solution 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 Thumbs Up.

    Visit my blog Practical Power Apps

     

  • RJF61 Profile Picture
    1,265 on at

    Hello @WarrenBelz Thanks for the response.  I have tried the following but continue to receive an error.

    RJF61_0-1669746443035.png

     

  • Lisa_T Profile Picture
    on at

    Hello,

     

    Is the AssignedTo column a people picker? if it is, then you cannot just save text and must save claims type data. 

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @RJF61 ,

    Yes, that makes a lot of difference (as I noted I assumed the output). You are going to need to have a "dummy" email address and do the full person table on both possibilities. Have you considered simply patching nothing if new

    If(
     Self.Visible,
     AssignedTo.Selected
    )

     

    Please click Accept as solution 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 Thumbs Up.

    Visit my blog Practical Power Apps

  • RJF61 Profile Picture
    1,265 on at

    Hi @Lisa_T Thanks for the response.  My AssignedTo is a LookUp from a different SP List.  It is pulling a text value from the other list based (named FullName) on criteria of another field (the criteria is whether a column named MgmtAssign contains any text).

    Example...

    NameMgmtAssign

    ---

    Y
    Adams, JohnY
    Barnes, David 
    Larson, KimY
    Smith, HollyY

     

  • Lisa_T Profile Picture
    on at

    @RJF61 Since you are dealing with a SharePoint list column, how about making the column's default the '---'? Assuming, of course, that you are saving to a SharePoint list as well.

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @RJF61 ,

    I will leave you with @Lisa_T as she seems keen to come in on active discussion posts. Please tag me if you need me to respond further.

  • RJF61 Profile Picture
    1,265 on at

    Hello @Lisa_T Thanks for the response and yes, I am saving to the SP list.  Because it is a Lookup column, how do I set a default value?

  • Lisa_T Profile Picture
    on at

    Try this - on the OnStart of your app, add 

    Set(varDefault, "---")

    Then set the default on the control to varDefault.

     

    Hope this works

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard