Confirmation on numeric text field

I would like to add a confirmation before fire up a numeric text field
I add some scripts on property change but does not work as I expected

if system.gui.confirm(“Are you sure you want to open this window?”):
if event.keyCode==event.VK_ENTER: event.source.doClick()

would you please help me? numeric text using an indirect tag to UDT parameter

Vision, or Perspective?

1 Like


propertyChange events happen after the property has already changed. You could add a custom property with the ‘real’ value, that you only write from scripting after your write has been attempted from the text component itself.

1 Like

Thanks for the reply, I tried several ways, but I didn’t get results, do you have any examples? Confirmation of any input should be a basic part of SCADA

Can you advise a quick example on how it is done?
The following post has similar enquiry.

1 Like