Form button only shows an OK message

Hi,
I put a button on a form’s toolbar to do some calculations but whatever I put in the code, it only shows a blank screen and an OK button in it.
Again, there is no difference depending on the code behind it. It doesn’t do even the simplest things.
Any ideas?

Two things, this is expected behavior. It will perform the php and then put a button behind it that can be suppressed by an exit(ref) or sc_redir. I suspect that you are trying to make some calculation and want to show that on the form. In that case you should apply an ajax event, or put the result on globals and reload them with the exit(ref) or redir.

1 Like

Hi, not just calculations, it doesn’t even perform messaging macros like “sc_error_message” or “sc_confirm”.