cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields in online form

Former Member
0 Kudos

Hi,

I have nearly 20 mandatory fields in my form which is built in online WDABAP. These fields are mapped to Dataview (BAPI). And for making madatory I have selected User Enter Required from Value tab and in empty message I have written error messages for all the fields.

And the form is of type zci. I have placed a submit button from Webdynpro Native, but when I click submit with out entering any value, the error messages are not displaying for Mandatory fields.

Where Im going wrong? is this is the right way ? Please help me out.

Warm Regards,

Smitha

Accepted Solutions (0)

Answers (2)

Answers (2)

vaibhav_tiwari
Contributor
0 Kudos

Hi,

Just Try to put the following code in the click event of the submit button:

if ( TextField1.rawValue == '' )

xfa.host.messageBox( "Fill up Textfield1" )

else if (TextField2.rawValue == '')

xfa.host.messageBox( "Fill up Textfield2" )

.

.

.

.

else

(Put here the default code of the submit button)

Former Member
0 Kudos

I think you have to enter the submit button from the form then only the validation will happen...

Thanks and Regards

shanto aloor