CRM read-only fields don't get saved in the database
If you have some fields that are only informative fields that you populate yourself by JavaScript, normally you will set them to be readonly because you don't want your users to be able to edit the value. If you do so, your value will no be saved in the database. The main reason for this is because when you post a form in an HTML page with disabled fields, the disabled fields do not get posted. If you want their values to be posted, you need to enable them.
CRM offers you the ability to save the values of the disabled fields. There is a boolean property named ForceSubmit on each field of the form. You can set this property to true if you want its value to be saved.
crmForm.all.fieldname.ForceSubmit = true;