old.getFieldValue(EachField) doesn't work?

old.getFieldValue(EachField) doesn't work?

Hi Zoho,

Each time I reload my script On Validate page, old.getFieldValue(EachField) is changed to getFieldValue(EachField) (showing the current data instead of the data prior to change).

Why is this happening? I need to compare the data in each field before and after the edit:

FieldsList=getFieldNames();
ChangedFiles=List();
for each EachField in FieldsList
{
if(getFieldValue(EachField)  !=  old.getFieldValue(EachField))
{
ChangedFiles.add(EachField);
}
}



Thanks

Ravid
    Zoho Marketing Automation

            Zoho Pagesense Resources

              Zoho SalesIQ Resources



                    Zoho TeamInbox Resources

                      Zoho DataPrep Resources



                        Zoho CRM Plus Resources

                          Zoho Books Resources


                            Zoho Subscriptions Resources

                              Zoho Desk Resources

                                Zoho Projects Resources


                                  Zoho Sprints Resources


                                    Qntrl Resources


                                      Zoho Creator Resources


                                        Zoho WorkDrive Resources




                                            Zoho Campaigns Resources

                                              Zoho CRM Resources

                                                      Design. Discuss. Deliver.

                                                      Create visually engaging stories with Zoho Show.

                                                      Get Started Now