Thursday, July 30, 2009

Password item in a tabular Apex form



In a tabular form it is not possible to choose password as the display type. This means that a tabular form would look like this:


This post by Patrick Wolf shows how you can add a check box to tabular forms. That gave me an idea to try the same thing for password items. It is actually much simpler than in Patrick's example!

All you have to do is set the HTML expression of the item to:









As explained by Patrick you have to find out which id you have to use. In my example the id is f06.
The easiest way to achieve this is using Firebug to inspect the unmodified element.




After these modifications the form looks like this:

No comments:

Post a Comment