Adding A Delay to App Studio Rules

In App Studio I am create a page that allows a user to upload a document and view it and then press a submit button.

When the button is pressed, I clear the upload document and document viewer, however I would like to have a 1-2 second delay between when the button is pressed and when the values are actually cleared to make the UI feal a little better

is there any way to add a delay to the buttons rules without creating and calling a workflow?

Hi @DMar ,

App Studio rules don’t support delays natively.. they execute instantly.
If you need a delay, the only reliable way is to call a workflow and use a Delay activity. Otherwise, you can improve UX by showing a loader or temporarily disabling the button instead of clearing fields immediately.

Check this app rule - spinner

I wish the spinner had the ability to cause a delay, sadly it is a bool so if I set it to true at the beginning of the button rule, and false at the end it does not add a delay.

It would be great if I could set it to appear for a minimum or X seconds