hi
I need to save a form on - field change so i have called a button on the change of the field which has simple file save
but after save the form refreshes and goes on top…
Is it possible to get the focus in the same field on whose change the button was called…
after saving once the form should not get closed editing should be continued.
Can anybody help me in this…
Thanks
Subject: Save the Form and avoid refresh on save
hi,
To set the focus in a particular field,even after loading we can use javascript.Use the below code
Name:
Age:
Here “Name” and “Age” are two fields.Give the field name ,where u want to set the focus.So even though after u load the window,the focus will be in the same field.In that button unless u write close window or file exit command it will not be closed.Just try it.If u still didnt get ,mail me --------ark.personal@gmail.com
Subject: RE: Save the Form and avoid refresh on save
Yes, it is possible.
I realize you wanted a more detailed answer than this, but I wanted a more detailed question.
Subject: RE: Save the Form and avoid refresh on save
Thanks for the reply…
to elaborate my question - i have a form with some 45 fields and after every 15th field i have to save the form automatically… without the knowledge of the user therefore I have in a button formula @filesave… i am calling this button on change of 15th field (doc.forms[0].button.click()) then on 30th field and so on… the only problem that happens is the form moves top as soon as the user crosses the 15 th field or 30th field etc…
Subject: RE: Save the Form and avoid refresh on save
This is a web application?I guess your code will need to store the name of the current field in a hidden field before submitting. Then, when you reload the form, you can have onload code to reposition to that field. To submit hidden fields, you need to have the field on the form, and either use “Generate HTML for all fields” option and make the field hidden, or make it editable and not hidden and use the HTML options of the field to make it hidden on the browser.