---
title: "Prompt User to Confirm Manually starting a Schedule BEFORE its Original Schedule Date 3.0"
id: "prompt-user-to-confirm-manually-starting-a-schedule-before-its-original-schedule-date-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/prompt-user-to-confirm-manually-starting-a-schedule-before-its-original-schedule-date-3-0"
updated: 2026-07-23T18:08:45Z
---

# Prompt User to Confirm Manually starting a Schedule BEFORE its Original Schedule Date 3\.0

You have a Schedule Entry for the future and want to prevent it from being manually started now

## Step-by-step guide

Add the following code to the beginOperation Script Extension Function of the MES Schedule Selector Component

![](/resources/Storage/knowledge-base/prompt-user-to-confirm-manually-starting-a-schedule-before-its-original-schedule-date-3-0/image2022-12-16_15-39-44.png)

Code

```
	for i in range(MESObjectList.size()):
	    obj = MESObjectList.get(i)
	    oName = obj.getMESObjectType().getName()
	    print "Object Name? [%s]" % (oName)
	    if oName == 'OperationsRequest':
	    	originalBegin = obj.getOriginalBeginDateTime()
	    	print "original Begin Date? [%s]" % (originalBegin)
	    	rightNow = system.date.now()
	    	print "Right Now? [%s]" % (rightNow)
	    	if rightNow < originalBegin:
	       		areUsure = "Schedule entry was programmed for [%s] and you are changing it to [%s]" % (originalBegin,rightNow)
	    		if system.gui.confirm(areUsure, 'Caution Changing Schedule Time'):
	    			system.gui.messageBox('Re-Schedule entry.', 'Information')
	    			return True
	    		else:
	    			system.gui.messageBox('NOT Re-Scheduled entry.', 'Information')
	    			return False

	return True
```

Runtime:

![](/resources/Storage/knowledge-base/prompt-user-to-confirm-manually-starting-a-schedule-before-its-original-schedule-date-3-0/image2022-12-16_15-38-58.png)

## Related articles

[MES Schedule Selector](/articles/user-manual/MES-Schedule-Selector)