Needs review
Project:
Context Form Alteration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2014 at 23:09 UTC
Updated:
23 Dec 2014 at 06:07 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
ronaldmulero commentedHere's the patch.
Created with
git format-patchHow it works:
For example, to unset the option "Armed Forces (Americas)" from the "State" select list that is provided by the Address Field module (set with United States as the default country) when it's used in the Profile2 main form:
Use devel to find:
['system_main']['profile_main']['field_org_address']['und'][0]['locality_block']['administrative_area']['#options']['AA']
Then use that info to fill out the Reaction > Form Alteration:
FORM ID: user_profile_form
PARENTS: profile_main, field_org_address, und, 0, locality_block, administrative_area
ATTRIBUTE: #options
VALUE: AA
UNSET: (checked)
Save.
And voilà, the option will no longer appear in the dropdown selectlist of the main profile form.

Comment #2
ronaldmulero commentedUnassigning
Comment #3
doublejosh commentedGreat addition. Putting on my list.