Show Loader/Spinner image when submitting request to AEM Workbench | Community
Skip to main content
June 1, 2023
Solved

Show Loader/Spinner image when submitting request to AEM Workbench

  • June 1, 2023
  • 1 reply
  • 1216 views

Hi Team,

 

We have a requirement in the adaptive form, to display the loader/spinner image when submitting a request to the AEM workbench REST API and after completion of the request, again the loader/spinner image needs to hide. 

 

Is there any possible solution through themes or any other options?

 

Please let me know your thoughts or ideas for this requirement, other than themes if any other solution is possible, do reply to the question.

 

Thanks,

Guru Manish

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

You can put in the form itself and use script in clientLibrary.

1 reply

Vijay_Katoch
Community Advisor
Community Advisor
June 1, 2023

Return the result as true (or any flag as per you) if the request is executed successfully in AEM workbench and then based on that value hide your field in the form.

June 2, 2023

Hi Vijay,

 

Thanks for your suggestion. 

 

Logic-wise it is Ok, but we need to know where would we need to define the loader/spinner image, is it inside the adaptive form as a component or through themes, we need to place the loader/spinner image inside the assets folder? 

Please suggest your approach or some reference. For your information, I have attached the loader image.

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
June 2, 2023

You can put in the form itself and use script in clientLibrary.