question

MohammadQasim-1438 avatar image
0 Votes"
MohammadQasim-1438 asked EmilyDu-MSFT commented

how to make validation on drop down of start and end time using power app

Greetings,

Using power app, showing time like start time and end time in drop down.

Solution required: I want to apply validation ,so

1) end time should be greater than start time.
2) Start time and end time should not be equal

How can apply these validation on power app using drop down list

Image is attached for refence

111981-whatsapp-image-2021-07-06-at-31406-am-1.jpeg
111907-whatsapp-image-2021-07-06-at-31406-am.jpeg
Thanks


office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT commented

@MohammadQasim-1438

Per my test, setting validation on start time and end time dropdown fields by using Power Apps is not available.

As a workaround, you could use list validation in the list settings.

List validation: =IF([start time]<[end time],TRUE,FALSE)
112060-1.png
Result:
112123-2.png


Update:
1.Create start time and end time dropdown fields in the list.
112991-1.png
112948-2.png
2.Go to List settings -> Validation settings -> List validation: =IF([start time]<[end time],TRUE,FALSE)
112949-3.png
3.If the start time is greater than the end time, error message will show in the form and you cannot submit the form.
113001-4.png


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1.png (32.6 KiB)
2.png (11.4 KiB)
1.png (30.0 KiB)
2.png (30.5 KiB)
3.png (31.0 KiB)
4.png (22.0 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can u share any example ?

0 Votes 0 ·

@MohammadQasim-1438

I have updated the answer, please check.

0 Votes 0 ·

@MohammadQasim-1438

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·