You need to sign in to do that
Don't have an account?

How you get HelpText in VF next to inputField???
Hi:
I have an input Field and I wanted a help text next to it just like in regular saleforce. How would I do that???
LIke the little "i" blue icon.
I wouldn't have thought the simple act of focusing would break it, so maybe its the fact that you have hijacked the onload. Try something like the following, which adds your function to any existing onload handler:
<script> function addOnLoad(fn) { var old = window.onload; window.onload = function() { old(); fn(); }; } func = function() {
focus('{!$Component.pageblock.pageblocksection1.intialservicerequest}');
}; addOnLoad(func); function focus(id) { document.getElementById(id).focus(); } </script>
All Answers
Either embed your inputField within a pageBlockSection or, unrelated to inputField you can access any fields' help through an expression like this:
{!$ObjectType.Account.Fields.AccountNumber.inlineHelpText}
I do see the issue and since this is a wizard I have a javascript on the first step which focus on the pageblocksection...
<script type="text/javascript"> window.onload=function() { focus('{!$Component.pageblock.pageblocksection1.intialservicerequest}'); } function focus(id){ document.getElementById(id).focus(); }</script>
If I take this out then the icons appear and work... but I need this...
Is there a way around it???
I wouldn't have thought the simple act of focusing would break it, so maybe its the fact that you have hijacked the onload. Try something like the following, which adds your function to any existing onload handler:
<script> function addOnLoad(fn) { var old = window.onload; window.onload = function() { old(); fn(); }; } func = function() {
focus('{!$Component.pageblock.pageblocksection1.intialservicerequest}');
}; addOnLoad(func); function focus(id) { document.getElementById(id).focus(); } </script>