Diferences in code generation

Hello…
In two apps, i have the same code…
Assign a simple form to text control, to call a procedure with a post…

{BotonCarro} = "<form name='Comprar' action='../AgregaArticuloCarro/AgregaArticuloCarro.php' target='_self' method='post'> <button class='btncarro1' name='Cod_Articulo' value='".{Cod_Articulo}."'><i class='fa fa-shopping-cart'></i> Comprado</button></form>";

In one of this apps, works fine, and generate this html code (Developer tools):
image

In another, the SAME CODE, generate this html code (not form, button) and NOT WORK:
image

What’s going on?
How can I solve that?
Thanks!!!

Hi @asantarelli
What are your apps? two forms? or two different apps? Another question is: where did you put this code in both apps?

two app forms in two separated systems…

What about my second question?
And could you please show us the code you have inserted?

This is the code… In both apps, the same code. In both systems, the control “AgregarArticuloCarro” is equal (both systems are similar)…
In one, SC generate as form and execute… In other, generate as button and fail.

The rest of form app is similar. NO diferences…

And the AgregaArticuloCarro is in both systems?

Yes, is the same code.
In another app (a grid), in the same system with the trouble, the same code works fine…Is only in the form app, in html generation, generate a tag Button, instead of a tag Form…
This is the trouble…

Well as I don’t see the app where the error is, I think there is some different config in this app which is giving the difference… check this in the app where is going well and compare with this one which gives you the error.

Are equal…
I think delete the app, and re-create

hmm maybe… try and see if it works,

Not work. I create a new app… copy the code… and not work…

Well I still think it is a config in some place of your app… BTW where do you put the code in your app?

In Event - Load…
Try in AplicationInit… with same result