Save value form HTML input

Former Member
Former Member
Hallo I have made a form, this form consists of input and button, the task is, If the button is pressed OK, on the server side a function is to be executed, which doubles the entered value of the input field and saves as an item with unique value as ID and value . how can i do this ؟
Parents
  • Hi ahmed, You can get the value of a field in the onClick event by with var val = getFieldByName("test_input").getElementsByTagName("input")[0].value;. You can then pass this value as an argument into your server side method with code like aras.applyMethod("MyServerMethod", "" + val + ""); Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi ahmed, You can get the value of a field in the onClick event by with var val = getFieldByName("test_input").getElementsByTagName("input")[0].value;. You can then pass this value as an argument into your server side method with code like aras.applyMethod("MyServerMethod", "" + val + ""); Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data