Why is Zoho re-writing my code?

Why is Zoho re-writing my code?

In my application NewINZDB2, I have a form called frmEvent.

Each time I try to write the following code:
  1. //Contact
  2. if (input.cboContact == "New Contact")
  3. {
  4. varContactData = tblContact [intEventID == input.intEventID];
  5. varContactName = varContactData.fmlaContact;
  6. varContactDetail = varContactData.strAddress + "\n" + varContactData.strSuburb;
  7. }
  8. else if (input.cboContact == "-Select-")
  9. {
  10. varContactName = "";
  11. varContactDetail = "";
  12. }
  13. else
  14. {
  15. varContactName = input.cboContact;
  16. varContactDetail = input.strContactDetail;
  17. }
it will get re-written by zoho to the following:

  1. //Contact
  2. if (input.cboContact  ==  "New Contact")
  3. {
  4.     varContactData  =  tblContact  [intEventID == input.intEventID];
  5.     varContactName = varContactData.fmlaContact;
  6.     varContactDetail = varContactData.cboAgency.strAddress + "\n" + varContactData.cboAgency.strSuburb;
  7. }
  8. else if (input.cboContact  ==  "-Select-")
  9. {
  10.     varContactName = "";
  11.     varContactDetail = "";
  12. }
  13. else
  14. {
  15.     varContactName = input.cboContact;
  16.     varContactDetail = input.strContactDetail;
  17. }

The problem is the addition of the cboAgency field is that when the user clicks the cmdSave button it causes my code to run incorrectly.

This code was based on some WORKING code a couple lines above that reads:

  1. if (input.cboVenue  ==  "New Venue")
  2. {
  3.     varVenueData  =  tblVenue  [intEventID == input.intEventID];
  4.     varVenueName = varVenueData.strVenueName;
  5.     varVenueDetail = varVenueData.strVenueName + "\n" + varVenueData.strAddress + "\n" + varVenueData.strSuburb + "\n" + varVenueData.strCity + "\n" + varVenueData.strState + "\n" + varVenueData.strCountry + "\n" + varVenueData.strPostalCode;
  6. }
  7. else if (input.cboVenue  ==  "-Select-")
  8. {
  9.     varVenueName = "";
  10.     varVenueDetail = "";
  11. }
  12. else
  13. {
  14.     varVenueName = input.cboVenue;
  15.     varVenueDetail = input.strVenueDetail;
  16. }
Can you please tell me why the cboAgency keeps appearing?

I have already allowed access to Zoho Support.

Thanks

Leo Saumure