How to block form submission or not depend on some conditions? | Community
Skip to main content
fulongt37334138
Level 2
April 26, 2023
Solved

How to block form submission or not depend on some conditions?

  • April 26, 2023
  • 1 reply
  • 490 views

I know the "submitStart" event of GuideBridge object, but it cannot block the submit. Anyone know the method to do this? I want to retrieve some data form backend before submit and after the data successfully retrieved, then submit.

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 Pulkit_Jain_

@fulongt37334138 

Couple of suggestions:

- You can write your own custom submit action[0], retieve the data and after validation, perform the desired submit action.

- You can add a rule before the actual submit (guideBridge.submit()) to make an AJAX call to retrieve the data and submit the form, based on a condition.

 

[0] - https://experienceleague.adobe.com/docs/experience-manager-65/forms/customize-aem-forms/custom-submit-action-form.html?lang=en#creating-a-custom-submit-action 

1 reply

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
April 28, 2023

@fulongt37334138 

Couple of suggestions:

- You can write your own custom submit action[0], retieve the data and after validation, perform the desired submit action.

- You can add a rule before the actual submit (guideBridge.submit()) to make an AJAX call to retrieve the data and submit the form, based on a condition.

 

[0] - https://experienceleague.adobe.com/docs/experience-manager-65/forms/customize-aem-forms/custom-submit-action-form.html?lang=en#creating-a-custom-submit-action