i have a field in a form, i need to set it's value when clicking 'Save' button using javascript. I have read somewhere there is a function do_save, but i couldn't find it.
I know i can override create method for this purpose, but i need to do this through javascript
Does anybody know how to achieve this?