Get text field value before saving node
Use the following code,

$value = $node-&gt;field_test[$node-&gt;language][0]['value']


This to get the value for the text field alone for other fields format will chage.