I am trying to populate a text field 'Subunit' based on another text field 'ACEC_Name'using the python parser in the field calculator (ArcMap). If the ACEC_Name = "Mojave Ground Squirrel" then I want the Subunit field to read "MGS1M." Attached is my code block for field calculator, every time I run the calculator it returns values for the entire Subunit field (even if they were previously populated). enter image description here

  • 1
    I don't see any quotes around your return value in the codeblock. It is likely erroring out, since there isn't a variable defined with that name. – smiller Nov 7 '19 at 20:12
  • 1
    To make it easier for us to evaluate, please edit your question to include the code block formatted as code. – smiller Nov 7 '19 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.