AEM FORMS AEMaaCS - Error handling with core form and components | Community
Skip to main content
Level 9
June 19, 2024
Question

AEM FORMS AEMaaCS - Error handling with core form and components

  • June 19, 2024
  • 2 replies
  • 1333 views

Hi,

 

I am connecting to a CRM and invoking a function , using invoke service but unable to add an error handling function per the document or as we could with workflows 

 

Has anyone tried this ? I see usage of old form template vs new one , plus guidelib is not something that can be used. 

 

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/forms/adaptive-forms-authoring/authoring-adaptive-forms-foundation-components/add-rules-and-use-expressions-in-an-adaptive-form/add-custom-error-handler-adaptive-forms#create-custom-error-message

 

 

 

thanks,

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

2 replies

Vijay_Kumar_Jalagari
Adobe Employee
Adobe Employee
June 25, 2024

Hi,

 

Can you please describe exactly where you are facing issues? Is the function visible but you're unable to drag and drop it, or are you unable to search for the function in the Rule Editor?



 

Level 9
June 25, 2024

Hi @vijay_kumar_jalagari  i ended up getting the custom function after a while perhaps caching of some sort . This is on core components template vs what you have which is adaptive. Invoke service in core is not working as expected and will be shipped out soon on AEMaaCS . Wrt errors, how do you display it on the field per the documentation online to say invalid id etc from handler , since I have no code editor and working on AEMaacs unsure how I could achieve field level validation 

 

did u install the pet sample on local ?

Level 9
June 30, 2024

While this is not doable due to a bug with invoke service worked on local set up for old forms.

1. My understanding is that the error would need to come in from source in a json format, even if the source is CRM. ? @vijay_kumar_jalagari 

2. if custom handler is used how do I invalidate the field. The field although marked as invalid is still something that can be submitted. 

 

kautuk_sahni
Community Manager
Community Manager
September 13, 2024

@nitrohazedev Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni