?
avatar coolcat-creations
coolcat-creations
16 May 2017

Steps to reproduce the issue

Create a Field in Context Mail
Hide the lable in the settings:

image

Expected result

Label should be hidden in Form

Actual result

Label is shown
image

System information (as much as possible)

latest staging

Additional comments

didnĀ“t test yet the fields in other context regarding this...

avatar coolcat-creations coolcat-creations - open - 16 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 16 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 May 2017
avatar brianteeman
brianteeman - comment - 16 May 2017

That is expected behaviour on a form. The hide label refers to when the field is rendered
screenshotr10-01-25

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

avatar coolcat-creations
coolcat-creations - comment - 16 May 2017

Ok, thanks Brian... Means the Label should not appear in the mail the user gets, right? Have to test this...

avatar brianteeman
brianteeman - comment - 16 May 2017

That i dont know - I havent looked at mail forms and fields - only content

avatar laoneo
laoneo - comment - 16 May 2017

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?

avatar brianteeman
brianteeman - comment - 16 May 2017

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

avatar laoneo
laoneo - comment - 16 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 May 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 May 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 16 May 2017

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

bootstrap-registration-form

avatar laoneo
laoneo - comment - 16 May 2017

Or when the definition of the field is clear, like the description in the article
image

avatar brianteeman
brianteeman - comment - 16 May 2017

That has a label - its "content" ;)

avatar brianteeman
brianteeman - comment - 20 Aug 2017

I am closing this at this time as expected behaviour

avatar brianteeman brianteeman - change - 20 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-20 10:36:50
Closed_By brianteeman
avatar brianteeman brianteeman - close - 20 Aug 2017
avatar laoneo
laoneo - comment - 20 Aug 2017

This pr #17177 adds another parameter to the field if the label should be shown in the form.

Add a Comment

Login with GitHub to post a comment