You need to sign in to do that
Don't have an account?
davidesi
How can I put a commandButton image close to input Field
I want to add a magnifying glass image close to a input field, so when the user click on the image it opens a new window.
if I write below code
<apex:inputField value="{!account.Parent.Name}" label="{!$Label.Padre}"/>
<apex:commandButton action="{!cancel}" value="Save" id="theButton" title="" image="{!URLFOR($Resource.lupa)}" />
I get the image very far from the input field.
Anyone can help me on this?
Thanks
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
It doesn’t works because when the page is rendered, it puts every <apex:inputField and <apex:image in separate cells of a table, and the div doesn’t works.