Skip to main content
Answer

When failing to fill a mandatory field, I get an error instead of being prevented from submitting.

  • March 24, 2025
  • 2 replies
  • 48 views

Forum|alt.badge.img

In the customer portal checkout page, I have made some of the fields mandatory. However, if I don’t fill them in, I get the below error message, instead of being prevented from submitting the order. And after the error, the sales order gets deleted. Is there a way around this to prevent the user from submitting the form without the cells being filled in. 

 

Best answer by aiwan

You can use a FieldVerifying event for field level verification.

 

How did you make the fields mandatory? [PXDefault]?

2 replies

Forum|alt.badge.img+1
  • Jr Varsity I
  • April 7, 2025

I am not very familiar with this screen, but one option you could consider is override the method and adding some logic to check if these fields are filled before executing the rest of the logic of the original method.


Forum|alt.badge.img+8
  • Captain II
  • Answer
  • April 8, 2025

You can use a FieldVerifying event for field level verification.

 

How did you make the fields mandatory? [PXDefault]?