cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive Form - button SubmitToSap - OnSubmit event is not triggered

Former Member
0 Kudos

Please help to resolve triggering OnSubmit event problem.

I created a test Webdynpro with UI element InteractiveForm.

The InteractiveForm properties are:

- displayType = native

- enabled is checked.

OnSubmit event a method is called. The method contains very simple code so I could debug and see if the event is triggered.

The form was created in SFP with Layout type = Native.

The form properies are:

Default Lang = Javascript.

Default run = at client

Preserve scripting changes to form when saved = Manually

I have inserted Webdynpro script thru SAP Utilities menu.

The form has SubmitToSap button and Textfield.

So now i am trying to debug WDA.

At runtime WDA opens Adobe form.

If I enter data into Textfield and then click SubmitToSap button - OnSubmit event is triggered. I am happy.

Then I run WDA again. This time I click SubmitToSap button right away without entering data into Textfield. OnSubmit event is NOT triggered this time.

Is something wrong with my form properties?

Thank you very much,

Tatyana.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check if you have marked TextField as mandatory, in that case sumbit event will not be triggered as the form will check for required fields.

Answers (1)

Answers (1)

Former Member
0 Kudos

Manas, you are right.

OnSubmit event was not triggered unless U enter value into Textfield because the Textfield property was "Requiered".

Also just for clarification the form Layout type is ZCI Layout (not Native like I said above).

Thank you!