I have a confirmation popup screen of dropdown components and text fields. Is it possible to disable the components on the screen and change the color of the text?
I have an edit screen that the user can make changes to including various dropdowns and text fields. The user updates a record and I pass in an original dictionary and new dictionary of values to the confirmation popup screen. If any value in the original dictionary differs from the new dictionary then I want the confirmation screen to show red text instead of normal text. However, I also don't want the user clicking on the dropdown component.
One solution I could do is pass in the actual text of the dropdown instead of the dropdown ID but I wanted to know if there was a quicker way.
One thing I saw in older forum posts is use the following:
but I am not sure how or where to change this on the confirmation popup screen.
So on the original submission screen the user selects values from a dropdown list. The dropdown list is populated by a name query that essentially looks up a UserID and a Username. Instead of passing the Username to the popup confirmation box I am just passing the UserID.
The popup isn't really relevant at all to my problem. It is just one of the components on the confirmation screen.
The root problem is I want to disable the popup with the enabled property but also style the text color to be red. It seems I can do either option but not both.
I still have no idea what the whole thing should look like, but it sounds like what you're really asking is "How do I style something that's disabled". Am I close enough ?
.ia_dropdown--disabled .iaDropdownCommon_container div {
color: yellow;
}
Paste that in the stylesheet, and play with it to get the style you want.
If you need it to be dynamic, create a style class, use that style class' name in the stylesheet, then give that class to your dropdown dynamically.
Actually, make the style class anyway, or every disabled dropdown everywhere will get this style.