question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default checkbox field ignores ui:title and ui:description

See original GitHub issue

Prerequisites

  • [x ] I have read the documentation;
  • [ x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description

The default checkbox field for boolean forms does not respect the ui:title or ui:description fields making it difficult to overwrite.

Steps to Reproduce

  1. Ignored UI values Given a schema of:
{
  "title": "Boolean Title",
  "description": "Boolean Description",
  "type": "boolean"
}

And a UI Schema of:

{
  "ui:title": "Overwrite Boolean Title",
  "ui:description": "Overwite Boolean Description"
}

Behavior

The form only displays the title from the description.

Expected behavior

It should display the ui:title and the ui:description as well.

  1. Repeated title and description

Given a schema of:

{
  "title": "Boolean Title",
  "description": "Boolean Description",
  "type": "boolean"
}

And a UI Schema of:

{
  "ui:title": "Overwrite Boolean Title",
  "ui:description": "Overwite Boolean Description",
  "ui:widget": "checkbox"
}

Behavior

The form only displays the the title, the description, the ui title, the ui description and the title.

Expected behavior

It should display only the ui:title and the ui:description.

Version

1.0.0

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CauchyAbel-zzcommented, Dec 11, 2019

I would fix it during free time since I know this is a long live issue and not that critical, LOL

I did come across this myself so I knew 😃 Assign to me if you could 😃

0reactions
adefrutoscasadocommented, Nov 29, 2021

Im facing this problem. Is it solved yet? Any workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="checkbox"> - HTML: HyperText Markup Language
If you wanted to submit a default value for the checkbox when it is unchecked, you could include an <input type="hidden"> inside the...
Read more >
Checkboxes default value is ignored by forms system ... - Drupal
When the form is rebuit with AJAX, the role field shows the computed value, but not the dates field? Inconsistency like that is...
Read more >
html - Do checkbox inputs only post data if they're checked?
Yes, standard behaviour is the value is only sent if the checkbox is checked. This typically means you need to have a way...
Read more >
Checkbox field - Magnolia CMS Docs
This checkbox field definition is part of the Magnolia 6 UI framework. The fully qualified class name is info.magnolia.ui.field.CheckBoxFieldDefinition .
Read more >
How To Select The Check Box In Selenium With Examples
The checkbox can be turned on or off (that is checked or unchecked). A checked Checkbox is the one that is seen as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found