Skip to main content
1-Visitor
Mar 25, 2022 5:30 AM UTC
Solved

How to restrict selection of future date and time in date time picker Thingworx

I am using a date time picker in the mashup, i want to restrict selection of the future dates so that user cannot choose the dates as am passing its input for a query it may end up as error.

PaiChungAnswer
22-Sapphire I
Mar 25, 2022 1:03 PM UTC

Not sure if it can be restricted, but you can use a Validator to validate the pick and give feedback to the user.

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
Mar 25, 2022 1:03 PM UTC

Not sure if it can be restricted, but you can use a Validator to validate the pick and give feedback to the user.

Translate
14-Alexandrite
Mar 30, 2022 1:53 PM UTC

Hello,

For your information, it was a feature supposed to be here in TwX 9.2 : https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Release_Notes/Whats_New_in_ThingWorx_Platform_9.2.0.html

Unfortunately, it seems not working. I am under discussion with Tech Support but I have good hope that this feature will be (really) here soon.

If you know that you will migrate to a next version, I would consider to wait a bit more for this feature.

Otherwise, Pai solution will do the job. 

Guillaume

Translate