formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Table element Hide label Issue

Open Bnayak123 opened this issue 2 years ago • 3 comments

Environment: Hosting type : Form.io

Version: Latest version (Even in online demo builder)

Browser: Chrome Version 113.0.5672.126 (Official Build) (64-bit)

Steps to Reproduce

  1. select the table component then add one label name and add some components to the table .

  2. select the modalEdit true and select the hideLabel true

  3. while rendering the component the label is not hidden.

Expected behavior

while rendering the component if we select hideLabel true label should be hidden.

JSON { "display": "form", "components": [ { "label": "Table Test", "cellAlignment": "left", "hideLabel": true, "modalEdit": true, "key": "tableTest", "type": "table", "input": false, "tableView": false, "rows": [ [ { "components": [ { "label": "Text Field Test", "applyMaskOn": "change", "tableView": true, "key": "textFieldTest", "type": "textfield", "input": true } ] }, { "components": [] }, { "components": [] } ], [ { "components": [] }, { "components": [ { "label": "Number Test", "applyMaskOn": "change", "mask": false, "tableView": false, "delimiter": false, "requireDecimal": false, "inputFormat": "plain", "truncateMultipleSpaces": false, "key": "numberTest", "type": "number", "input": true } ] }, { "components": [] } ], [ { "components": [] }, { "components": [] }, { "components": [ { "label": "Time Test", "tableView": true, "key": "timeTest", "type": "time", "input": true, "inputMask": "99:99" } ] } ] ] }, { "type": "button", "label": "Submit", "key": "submit", "disableOnInvalid": true, "input": true, "tableView": false } ] } Table element Hide label Issue

Bnayak123 avatar May 18 '23 05:05 Bnayak123

I agree this is a bug. It is probably in the template which is here https://github.com/formio/formio.js/blob/master/src/templates/bootstrap5/modalPreview/form.ejs. We will log this as a nit bug, but if you wish to expedite the resolution of this, then please feel free to submit a pull request with a label hidden flag check in this template so that it does not show the label if the hide label flag is set.

travist avatar Jun 08 '23 13:06 travist

Thank you for reporting this issue. I can reproduce it and have logged a ticket for the backlog. We are always willing to review any contributions to resolve this issue from the open-source community.

For internal reference: FIO-8291

Sidiro23 avatar May 01 '24 13:05 Sidiro23

After review we don't expect to resource this to any of our developers in the near future. We always welcome any contributions to achieve the expected behavior and will review any PRs made to resolve.

lane-formio avatar May 07 '24 17:05 lane-formio