When a text input is conditionally disabled, I would expect a visual cue to the user that it is disabled. What I am observing is that the text input looks exactly the same, but the user is unable to type in it. Is there a way to make the box and label appear faded/gray? The only solution I see is to make two text inputs with different formats and show/hide each conditionally. Hopefully, there is a cleaner solution.
Example: when a button is disabled, the appearance changes to be faded and it is clear to the user that it is disabled.
@Abhilash_K Hi, thank you for the response. This helps, but it is only coloring the input box itself. Is there a way to apply formatting to the text input label? I am playing around with some CSS to see if I can figure it out, but let me know if you have any ideas.
Note: I found that input[disabled] works for specifically disabled elements, rather than all read-only elements.
@NascoMan Dom structure for Label and Input element are siblings of the Parent div element. So if you want to differentiate the Disabled Text Label then you have to write the custom jquery script to scan for input[readOnly] elements and find the immediate sibling and make changes dynamically. I dont see any out of the box solution to make the Label looks like disabled format when the input elements are disabled or readonly.
Posted: 6 months ago
Posted: 19 Jan 2022 16:15 EST
Andrew Byberg (NascoMan)
@NascoMan Yeah this components are in Cosmos Library. Verify the Dom structure if the Cosmos component and Regular Pega 8.6 div generation. if the Label and Input are in the same node then you should be able to achieve it.