Problem/Motivation
Thank you for the cshs_menu_link submodule, it came just in time for me. That said I'm not sure if the string "- Please select -" is optimal for this context. To me, as end user, it suggests that I should make a choice. In fact, making a choice is optional.
Proposed resolution
Consider if there is a better way to communicate that the user can make a choice, but does not have to. It should be clear to the end user what the effect of both options is.
Issue fork cshs-3199357
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andy-blumI think this issue is effectively a duplicate of #2606760: "Make the default option label configurable", but I'm going to mark the other one as a duplicate of this because that issue is old on on the 7.x branch.
From that comment thread from user lahode:
Comment #3
marcvangendThanks Andy. In fact I'm using a form alter at the moment to override '#none_label' only in the menu link situation. I was happy to find this works well:
I guess making it configurable is a good idea too. That said, it still wouldn't hurt to try and figure out what the optimal default value is.
Comment #4
br0kenI see no easy-to-implement option and don't want to complicate this module really. Any propositions?
Comment #5
marcvangendRe @BR0kEN: I understand your concerns about adding complexity. The suggestion and title change in #2 considerably broadened the scope of this issue, so for now I'll just focus on my original point: "a better way to communicate that the user can make a choice, but does not have to".
My most minimalist suggestion would be: Change the slightly opinionated "- Please select -" to a neutral "- Select -".
In addition, still low complexity: In cshs_menu_link_form_node_form_alter(), add a #description property to guide the user. For instance:
Comment #8
br0kenThanks @marcvangend, @andy-blum. The label is now configurable for a field widget and replaced with
- Select -forcshs_menu_linksubmodule. The description proposed in #5 added as well.Comment #9
marcvangendThank you for the quick response!