I am building an app from scratch using an Excel spreadsheet table in OneDrive as my data source. One of my fields contains a date, and when I add this field to my form by clicking the "eye" I get three data entry boxes -- one for date, one for hour, and one for minute. I don't need or want the hours or minutes, just the date, with a calendar control. I can't figure out how to get rid of the extra hours and minutes boxes (except by resizing them so that they're invisible). How do I edit the properties to get what I want?
You could selet the item in question, go into the Display Properties under the Advanced Menu, the third option from the bottom is 'Visible', change this to "false" for each item you would like to remove from view.
Just a couple of thoughts:
1) Be careful with dates in Excel, see this post I strongly recommend saving a dates as text in format "yyyy-mm-dd"
2) My personal opinion is that as soon as you start to customise edit or display forms, you are much better off not using forms but building you own using the single controls and submitting data changes via Patch actions
Happy to give advice on both if needed
If you generated the App from your Excel file directly, then we need to unlock under Advanced to modify the property, select the control that you would like to modify first, then unlock it under Advanced, after that, scroll down to the bottom, under Design part, click more Options, then the bottom three is the visible propety, change its value to false should make it disappear.
If you have any further questions, please post back.
Adding some reference:
Hello there, sorry silly question
in one of your samples you have a field "DateCreated" how can I insert labels that show in the form like this:
=Datecreated + 24
=Datecreated + 30
=Datecreated + 37
what I am trying to do is to setr 3 labels that show datecreated plus 24 days = green, plus 30 days = Yellow, plus 37 days = Red
Thanks in advance for your response
Hi. Not only I want to remove the time control but I don’t want it to be included when I submit to Excel, I want only the date. How can I do it ?
Check out new user group experience and if you are a leader please create your group
Next call is happening on April 21st at 8a PST.
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.