Show Loader/Spinner image when submitting request to AEM Workbench | Adobe Higher Education
Skip to main content
Level 2
June 1, 2023
解決済み

Show Loader/Spinner image when submitting request to AEM Workbench

  • June 1, 2023
  • 1 の返信
  • 1216 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー Vijay_Katoch

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

1 の返信

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.

ManishHello1作成者
Level 2
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
Community Advisor
June 2, 2023

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