Skip to Content
author's profile photo Former Member
Former Member

Mandatory fields in online form

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 04:50 AM

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

    Thanks and Regards

    shanto aloor

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 05:01 AM

    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)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.