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 / Dropdown default value...
Power Apps
Answered

Dropdown default value to equal part of text string

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Gurus 😃

 

I have a Sharepoint List with StartTime and EndTime as Single Line of Text columns.

I have a EditForm where users can edit existing records, with a toggle - The 'New Start Time' and 'New End Time' are hidden until Edit is enabled.

Screenshot 2019-12-04 at 12.26.55.png  Screenshot 2019-12-04 at 12.26.45.png  

What I would like to do is have the Hour and Minute dropdowns equal the Existing data. At present they have the same default values as the New Form. This means that if Edit is enabled, and some other section changed, but the times left as they are, the times will be edited to the default values when the form is submitted. I obviously need to avoid this.

 

I've tried 'ThisItem.StartTime' and 'Parent.Default' without success as both return "00" unsurprisingly.

When creating  a new form The Start and End times are created using: Time(Value(HourDropdown_3.Selected.Value), Value(MinutesDropdown_3.Selected.Value), 0) so I think I need a formula that will extract the first 2 numbers (text) from the string for Hours, and the last 2 for Minutes?

Something like: First(Split(ThisItem.TimeStart, ":")).Result ??

 

Kev

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry, found it eventually:

    Left( StartTime, 2 ) etc.

     

    Simple really 😜

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard