cancel
Showing results for 
Search instead for 
Did you mean: 

validation in the form

Former Member
0 Kudos

Hi,

Im developing online interactive WDAbap application using BAPI.While designing the form I have maintined few feilds nearly 20 fields as madatory in the field properties.And rest of the validations are in BAPI.

Once I click submit in the form , how to handle all these madatory fields to display the messages to user?

And the validations which are maintained in BAPI how to display in the form?

Warm Regards,

Smitha

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi -

You can validate by writing scripts either in formcalc or javascript. If you are setting some field as mandatory (either by directly setting its property in the paletts or by writing scripts), you will get a pop up message automatically in case that mandatory field is not filled.

syntax for making a field as mandatory:

if (condition)

then

field.manadtory = "error"

else

field.mandatory = "disabled"

If you want a custom pop up message then you can add following piece of code in your script:

xfa.host.field.messageBox("your message")

Former Member
0 Kudos

you can do the validation using scripting in adobe form using form calc

Read the following blogs

Thanks and Regards

shanto aloor