1

Checking this option in a custom field View Only? Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM.

I had read that it would not update upon import. However I just ran an import and a field did import that was marked as view only. For a previous import I recall that it did not update.

What is the expected behavior here? I thought it was not to update.

  • can you clarify. if you do not want it to import then why include the data in the import? – petednz - fuzion Mar 1 at 19:34
  • Using the view only option is an easy way to lock down a field for users that should not be editable. We only want the field to be edited thru imports e.g. Secretary of State data. I remove the View Only option when I import. – Andy Burns Mar 1 at 19:55
2

It seems a probable bug.
I ran an import of a file containing same field as my custom field and the field was updated by the information mentioned in csv and did not retain its default value. So, Yes, the issue was replicated.
The value of custom field is only retained when we create a contact through CiviCRM and not importing, so it looks to be an inconsistency in the behaviour while importing. An issue will be opened for the same in issue tracker of CiviCRM.
Thanks for reporting!

| improve this answer | |
  • 1
    While people may differ on what they want to occur, I'd prefer it to be import when set to view only. – Andy Burns Mar 2 at 18:24

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.