Avatar

Level 4

Hello!

I have two buttons on a form.  One is a "regular"-type button, captioned "submit", and the other is a "submit"-type button named FSSUBMIT_ .

The regular button has code behind it to set a form variable (working properly), then calls the click event of the FSSUBMIT_ button.  I am receiving a "Submit cancelled" error message when I preview the xdp and I'm wondering if this is normal - I mean, once the form is hooked up into workspace will the error go away?

Here's the code behind the "regular" button:

var searchFragment = xfa.resolveNode("customerSearch");

var hideSearch = searchFragment.resolveNode("hideSearch")  //form variable

hideSearch.rawValue =

"1";

FSSUBMIT_.execEvent("click");

Thanks,

Elaine