cancel
Showing results for 
Search instead for 
Did you mean: 

Error in validation of Date Field

Former Member
0 Kudos

Hi Experts,

For my date field i assigned validation and is working properly.I could pop up the error message also.But my issue is, the entered wrong data is not getting deleted or cleared from the date field after validation.

How i can clear the wrong data entered in field automatically?

Please help me.

Regards,

Arun.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I solved it Myself.

Please add this code to exit event.

if(this.rawValue == this.formattedValue){

this.rawValue = "";

xfa.host.messageBox("Please enter date in 'DD.MM.YYYY' format");

}

Arun.

Former Member
0 Kudos

Hello Arun,

Can we use validate event for the same? Ideally it should cancel teh submit of the form.

I am a using SAP Adobe Interactive forms using transaction SFP in ABAP Workbench and am trying to check the possible ways to apply validations (client side validations) to the form data. These forms are expected to get called from HCM Processes and Forms processes.

Regards

Rajeev