View Full Version : How to add code to submit form, when panel code view says "read only" ?

6 Nov 2013, 3:16 PM
Hi - I'm totally new to Sensa touch. I am trying to add "submit" code to a login form. I have seen various examples, all showing code fragments. However, I cannot add a code fragment to the login panel, because the code view says "read only". I want to add something like this:

url: 'myUrl',
form: 'myFormId',
method: 'POST',

callback: function(options, success, response) {
; // save a hash, or post an error message

So, what do I need to enter the code.

I have to believe this is simple, I am just so new to Touch and Architect I am kind of lost in the entryway.

Thanks for any and all help with this.

7 Nov 2013, 11:44 AM
I put the fields and submit button into a "form panel", then added an "event binding" to the button, and was able to type in code when selecting the "event binding".

8 Nov 2013, 4:02 PM
Thanks for the update and sharing your solution.