Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read-only attribute not display on certain components #5945

Open
Jacopops opened this issue Dec 10, 2024 · 2 comments
Open

Read-only attribute not display on certain components #5945

Jacopops opened this issue Dec 10, 2024 · 2 comments

Comments

@Jacopops
Copy link

Describe the bug
When you add read-only attribute in the layout section it not display on components: date, radio, selectboxes, checkbox

Version/Branch
Latest

To Reproduce
Steps to reproduce the behavior:

  1. Create form...
  2. Add components date, radio, selectboxes, checkbox and add the attribute read-only
  3. Try with textfield and word perfectly

Expected behavior
Turn gray like textfield

Screenshots
image
image

Additional context
I see when inspecting the html that the readonly attribute is not on the correct input but on another html component which is not displayed.
Red: not display
Blue: display
image

@lane-formio
Copy link
Contributor

Is there a reason you can't just use "disabled" in the display tab?
image

@Jacopops
Copy link
Author

Since I render the form with php, i check all the attributes and print them to html, with the disable control I have to check another form parameter, I use other attributes and having them all in one place is more advantageous, the only " disadvantages" is when I have to check the read-only field in the builder, I have to match all the components individually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants