Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to avoid user from saving a record when the form is loading by behaviour?

yanchiu_octopus_com_hk October 4, 2024

My form has a lot of logics when loading, about 10 second complete loading

When user edit the record, they can change the content of field suppose to be read only

Is there any way can avoid that, like disable the form with a progress bar before the form is completely loaded ?

1 answer

0 votes
Sergei Troshin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2024

Hi @yanchiu_octopus_com_hk

It is not good if your form loading takes so long.

There is no way to do it with Behaviour tricks like reordering server-side scripts or creating additional Behaviour, because ScriptRunner completes the computation of all Behaviours related to the current scope and only after applies UI-changes.

First of all, I would recommend simplify your logic to decrease loading time or remove your field from the edit screen.

As a secondary, non-standard method, you can use ScriptRunner Fragments and their web resources to make your field read-only manually using JavaScript, or you can use another plugin that provides such tools.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events