Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Required text fields

Avatar

Level 2

I'm trying to make a couple text fields required before printing a form.  I tried choosing "User Entered-Required" in the Value tab, and checking the "error" box in the validation pattern area, along with a message, but if I tab over the field, it doesn't populate anything to say this field is required.  Can anyone help?

Thanks,

Erica

1 Reply

Avatar

Former Community Member

The mandatory field check does not kick in until a submit operation is done. printing is not a submission action. You couldl use the prePrint event to check these fields instead.

Paul