1

I've created a CiviCRM profile with address fields, and with email, phone, and website fields, and configured this profile for use in the Drupal Account Edit screen. Some users may want to delete these fields from their profile, but this doesn't seem to be possible. When the user deletes the values of all the address fields, and/or deletes the phone, email, or website form values, and saves the form, the existing field values remain untouched.

As a very poor workaround, the user can enter a bogus value like '-' for the phone number, or for address fields, but email and website require valid formats, so even this poor workaround fails for those fields.

Is there a way to allow deleting on these entities in a profile?

1

I recall this coming up a number of times on the old Forum and the answer was 'can't be done'. And I thought this was going to be an unhelpful answer but Post 1 took me to Post 2 which took me to this Include ID when editing 'block' fields (+ allow deletion of block values via Profiles) which is flagged as Fixed for 4.7.

What version are you on? Want to go test on master

  • Yep, I'm on 4.6. Just tested on 4.7 (just an old 4.7.3 dev site I have lying around), and simply deleting does indeed make the block entities go away. Thanks, Pete! – TwoMice Jun 13 '16 at 20:25

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.