Hello SFDC Experts and Community People, Thanks for all your help so far to help me with the JS code which was inserted in Web2Lead HTML form code to obtain Lead's country info. However as the business requirement is to update the Country field on Lead object I have created a custom Formula field called Country on Lead object which should be able to fetch Country code from the Address field(this field is already getting updated by using JS inside web2lead form generated by OOTB feature of Salesforce). However while I am trying to update the Country field with the below formulas getting different errors:
I am getting this error
Error: Field Address does not exist. Check spelling. TEXT(Address): Incorrect parameter type for function 'TEXT()'. Expected Number, Date, DateTime, Picklist, received Location
Any help would be appreciated in this regard.