Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4978 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi all

Wasn't too sure if I should've added this to my last post as they are vaguely connected.

Anyway, I have added a cancel button to my layout that cancels a new record request. This effectively deletes the current record. I have also added a cancel button to my search layout which basically exits the current layout and switches to another.

My issue is bypassing validation on clicking cancel. If I have a date field for example, that contains invalid search criteria, I would prefer it if validation does not take place so as the user does not have to change the field contents, and simply exits the layout.

I'm not sure if this will be possible as the validation with regards to data type is always going to take place if the field is exited.

The only solution I can see at the moment is to attach my cancel scripts to an OnKeystroke trigger, which executes the cancel/exit script on Esc for example, and do away with my cancel button. This script would empty the current field contents to prevent invalid data being validated.

I would though, if possible, like to keep the cancel button.

Any thoughts?

Thanks in advance

Lee

Posted

Clicking a button does not exit the active field. Try adding a Revert Record step before you delete the record.

This topic is 4978 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.