How use javascript in form grid editable?

Hi, i am working a grid editable, i need to use events javascript for some fields. but it does n?t work.
in an event onchange for a field i have this code:

document.F1.myfield.value = ''test assign a value";

Wich is the way for do it?

It is a very generic question.
Try being more specific because I don’t know how well you know JavaScript and if I throw a bunch of tips it might be misleading.

the code you wrote is correct.
But remember to adjust the parameters to your form.


document.yourFormName.yourFieldName.value = "test assign a value";

Look into your source code to check for the correct Form Name and Field Name you want to apply the code.
(form names will often be F1, F2, F3… etc)

Also look if the form you’re trying to reach is inside any iFrame, it would be a different code.


Scriptcase apps have access to the jQuery library.
You can also access your field by


$("#idOfTheField").val("Your Value");
OR
$("input[name=yourFieldName]").val("Your Value");


You can also try contacting our support.