sc_redir() how to remove OK message popup

Hi Everyone,

I’m new here in scriptcase and I’m developing a Barcode system project, I created a new button in Form Application using sc_redir(); command everything is working ok when i clicked the button, but there is a OK button popping up before it redirect to other form.

How to remove this popup (ok)? i want to click the button and directly redirect to other form without clicking OK to proceed.

Please advice thank you.

I’m not sure, but did you set any confirm message at the button settings?

Hi Aducom,

Thank for your reply, i just checked the confirm message but it’s blank nothing is there so i wonder where its that came from.

pHP button or Ajax button?

Hey Tasyo,
You provided little details on the issue or code sample but, what I would do is debug what is actually happening in the form when you click on your button. The button should have a listener when the OnClick event is triggered. You can debug it like in this example (use Chrome browser):

http://blittle.github.io/chrome-dev-tools/elements/event-listeners.html

or like this:

http://stackoverflow.com/questions/10213703/how-do-i-view-events-fired-on-an-element-in-chrome-web-developer

You’ll get to see what is actually happening after you click on the button in the click event.

Hope this helps.

It’s easy to overcome. The next line behind the sc_redir should be sc_exit(ref);

Mr. Drent is correct. It works out perfect with sc_exit(form_name);

Huwow thank you very much sc_exit(form_name) do the trick! Thank you for all your help guys.