Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In my prior experience with entityreference_prepopulate, putting a parameter like oa_section_ref in a node/add URL was enough to hide the oa_section_ref autocomplete field, assuming you checked the right box on the field config.
In OA2, the oa_section_ref field is a select list by default. but i generally don't want users to be able to change the section they are assigning their content to. Should i form_alter to hide that field, when the parameter is present? Should i install entityreference_prepopulate and switch to using an autocomplete widget for those fields?
Comments
Comment #2
kevinwalsh CreditAttribution: kevinwalsh at CivicActions for LINCS commentedComment #3
Argus CreditAttribution: Argus as a volunteer commentedWhy not simply add a class "hidden" to the fieldset group_oa_access?