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
Alex Youroukelis 4Alex Youroukelis 4 

How to add an Outputlink next to an inputfield on a form

I'd like to add an output link next to an input field on a form (so that a user can select the link to get some contextual help about the field).

I have been able to add the outputlink to the page but cannot work out how to get the link to appear next to the field rather than next to it.

Attached is a mockup of what I'd like it to look like:

User-added image

Any help would be greatly appreciated

thanks
Ramu_SFDCRamu_SFDC
Try using a panel grid. <apex:panelgrid columns="4">add the components </apex:panelgrid>

If the above tag did not work. The other option is to use HTML table.


Sri549Sri549
Hello Alx,

As per your requirement, i gone through and tried as my understanding and i hope this would help you in giving solution.
Following Code:
<table border="0">
                    <tr>
                        <th>
                            <table>
                                <tr>                                   
                                    <apex:inputText value="{!Account.Name}"/>
                                </tr>       
                            </table>
                           
                        </th>
                        <th>
                            <table>
                                <tr>                                   
                                    <apex:commandLink value="Sub type Defination" action="{!Save}"/>
                                </tr>       
                            </table>
                        </th>
                    </tr>
                </table>

If it solves your requirement ,please Mark it as Kudos.
If it doesnt solve your requirment,reply me so that i may help you.

Thanks
Srinivas
SFDC Developer.


Alexy1967Alexy1967
Never got round to posting my solution but better late than never:
 
<apex:outputpanel >

    <apex:inputfield value="{!case.Sub_Type__c}" />
    <apex:outputLink     onclick="window.open('https://c.cs6.visual.force.com/apex/InteractionSubTypeHelp','_blank','toolbar=false, scrollbars=yes, resizable=yes, top=200, left=200, width=1050, height=500'); return false;">Sub Type Definitions</apex:outputLink>

 </apex:outputPanel>

User-added image