Button with javascript
Posted: Wed Sep 12, 2012 11:24 am
Hello.
Is it possible added button in form that will run JavaScript on click and this button must behave in appearance like text field (I mean - integrate in form layout - Column Number - Order Number).
Now I use following technic
1. Use text field with style .readonly
2. In Default Value SQL place SELECT "Button name";
3. On On Double Click event place JavaScript function call - (like this - changeTimePeriod();).
Problem is this "button" don't work like button. I have to double click for event instead of single click.
Maxim
Is it possible added button in form that will run JavaScript on click and this button must behave in appearance like text field (I mean - integrate in form layout - Column Number - Order Number).
Now I use following technic
1. Use text field with style .readonly
2. In Default Value SQL place SELECT "Button name";
3. On On Double Click event place JavaScript function call - (like this - changeTimePeriod();).
Problem is this "button" don't work like button. I have to double click for event instead of single click.
Maxim