Problems with nested functions

Problems with nested functions

In my script, under a previous working version I had the following code and it was fine

Version 1.0

temp = thisapp.udf_history.get_field_changes(input.HIDDEN_FIELD_CHANGES, "POSTCODE", ps.POSTCODE.toString());

However, when I made changes to my script, I kept getting errors so I was forced to use

Version 1.3

postcode_string = ps.POSTCODE.toString();
temp = thisapp.udf_history.get_field_changes(input.HIDDEN_FIELD_CHANGES, "POSTCODE",postcode_string);

I think zoho creator has issues with nested functions.


Application:  https://creator.zoho.com/essistmgmt/form/1647/scriptbuilder/#
On User Update: SITE_ADDRESS_POSTCODE_SK

Can you please investigate why I can't nest functions anymore?