Create a Field in Context Mail
Hide the lable in the settings:
Label should be hidden in Form
latest staging
didnĀ“t test yet the fields in other context regarding this...
Labels |
Added:
?
|
Ok, thanks Brian... Means the Label should not appear in the mail the user gets, right? Have to test this...
That i dont know - I havent looked at mail forms and fields - only content
If I'm not wrong, then there is also a parameter in JFormField
if the label should be displayed in the form or not. Don't know if it would be a good idea to expose that to the UI?
If it is exposed then the options should be display/hidden with the label visually hidden from display and not removed. otherwise its an accessibility issue
Then it would require a change in the layout as well https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/form/renderfield.php#L32
Category | ⇒ | com_fields |
Status | New | ⇒ | Discussion |
I did spend some time looking at this issue last week when comparing Joomla and Drupal accessibility and I noticed that for every field in drupal there is the option display/hidden for every label to understand the use case for having a field and not displaying the label. The only use case is when you have compound fields such as the date of birth field (shown below) or something similar like multiple fields for a name or address
That has a label - its "content" ;)
I am closing this at this time as expected behaviour
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-20 10:36:50 |
Closed_By | ⇒ | brianteeman |
That is expected behaviour on a form. The hide label refers to when the field is rendered
So for example you have a field for adding a video. The label "video" would be displayed in the form view so you know what to put in the field but it would not be displayed when you render the video.
As every field on a form requires a label this is the correct behaviour