File upload field uploading document even on cancel scenario

Hi All,

We have a requirement to upload a document which creates a new version of the existing document upon click of 'Submit' button and do not create upon click of 'Cancel button' (both buttons will submit the form).

Currently, Submitting the form (either through submit/cancel buttons) is creating a new version even though I am saving null value to uploaded files input upon click of 'Cancel' button.

I could see the below in appian documentation.

  • When implementing form cancel behavior via a submission, remember that the uploaded files are moved to the target on submission. If this is undesirable in a cancel scenario, it should be deleted (if target is a folder) or reverted via a new version (if the target is a document) by the process after submission.

but how can we revert the document to the previous version? Is there any function to delete the current version of a document or get a particular version of a document?

(even the Create new version smart service is deprecated)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data