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 / Data Field Changing va...
Power Apps
Answered

Data Field Changing value on navigating screen

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Expert,

 

In my App i have one drop down field name EmployePersonnelNumber , This filed picks data from SQL and then save in Share point list. but for the numbers stating with 0 , it discards all the zero and saves only the remaining number for example if personnel Number is coming from SQL in dropdown as 0003 , it will become 3 on the next screen.

 

 i tried changing the datacard value format from text to number and number to text but no effect. please advise i ll be very grateful.

Please find the screen shot below. the data type of SQL column is "single Text of Line"

Screen 1. when choosing the number by dropdown.

   Capture108.PNG

Screen 1. navigating to the next screen 

Capture109.PNG

Categories:
I have the same question (0)
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    Hi, where the value is 3, try changing the default property to

     

    Text([YourNumber],"0000") where [YourNumber] is the same as the current default, most likely Parent.Default

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What is the column type in your SharePoint list?  It will need to also be single line of text as your SQL is.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hii @RandyHayes , It is single line of text.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What is your Default property (assuming this is a Dropdown - DefaultSelectedItems property if a combobox), and the Items property?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @C-Papa , I believe this will append the "0000" text always before the personnelNumber. so in this case if next personnel number will be 0195 it will make it 0000195. which will be wrong value for the record.

    correct me if i am wrong 

  • C-Papa Profile Picture
    1,836 on at

    It will not do what you have suggested, give it a try

     

    example below:

     

    C-Papa_0-1621863438719.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes , this is a drop down.

    Please see below.

    1. Default property of dropdown is      "1"

    2.Item property of drop down is 

    Distinct( Filter(
     BG_EmpnameTimesheet,
     NAME=Dropdown3.Selected.Result
    ),PERSONNELNUMBER).Result

    Default property of whole datacard is : ThisItem.EmployePersonnelNumber

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Your Default should be : Parent.Default in order to see the value stored in your SharePoint record when editing.

     

    However, with the formula you have on the Items property - are you actually getting 0195 (for example) or 195?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @C-Papa , This is working good for me. Thank you so much for the help.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes , on the form where its fetching data(master form screen) from Share point it is Parent.default only.

    in drop down i am getting 0195, only when it goes to master form it becomes 195.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard