function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
davidesidavidesi 

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

Avidev9Avidev9
just wrap them together in a div
davidesidavidesi
It doesn't works because when the page is rendered, it puts every



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.
Avidev9Avidev9
Can you post the full code ?
davidesidavidesi

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.

Avidev9Avidev9
Can you still post your code ? with the table/pageblock ?