Skip to main content

Hello All.

 

I have a form that based on a rule it disables all the views (6 of them) so data cannot be changed. However, it dims it so low the text is completely unreadable in many cases. I assume there is no way to deal with this issue within the Designer tool itself and so I am going to have to rely on injecting some styling tags to address this issue or set every field to read only which seems very tedious, but would work. I am not a CSS expert at all and was wondering if you could help me deal with this issue. I did find the following link on the Community:

 

http://community.k2.com/t5/K2-blackpearl/Disabled-layout-Table-text-blends-into-the-background/ta-p/92069

 

In the resolution section it suggests how to change it for all but doesn't actually give you the tag. It just goes on to show you it for a specific control.

 

I am using this resource:

 

http://community.k2.com/t5/K2-blackpearl/SmartForms-How-to-execute-JavaScript-via-rules/ta-p/90846

 

to add some simple alert javascript just to see how it works. I am not sure how to write the script to tell it to not dim the controls. Can you help me with this? 

 

Thanks,
Steve

I agree the disabled controls are hard to read and so I normally use a different approach of setting the controls to read only.  This can be done using the "Specify Edit State for View and Form Controls" rule.  For buttons you still have to add the disable rule separately but normally that isn't too much extra work.

 

Hope that helps.

Tim


Hey Tim. Thats perfect. Exactly what I needed. Better than doing each element one at a time. Slowly learning the K2 built in tools!!


I am having a similar issue.  Thank you for this reply.  I will try it, too!

 

Rob

 

 


Reply