Access Current Unsaved Record in Pre-Workflow

Hello Guys,

Does anybody have an example of javascript to use to access the current, unsaved record in a form where I want to do some pre-workflow validation?

When the user clicks “Save” I want to check the fields they have completed against the database and then decide whether to give them an error message or allow the save to go ahead.

Thanks in advance,
Andy

You can refer to our document section here for samples of pre-workflow (we just updated it):

1 Like

Thanks Jeff, that’s great.

I’ve reviewed the new sections of the document and they look very helpful for doing the pre-workflow and post-workflow functions we were trying. I’ll let you know if any problems when we test it but I’m sure it will be good.

PS. looking forward to the field-level, improvements to pre-workflow functionality that you and the team are working on.

Cheers,
Andy