0

what is the use of apex:param tag in Visual Force

<apex:outputLink value="http://google.com/search">

    Search Google

    <apex:param name="q" value="{!contact.name}"/>

</apex:outputLink>

If i click Preview in Visual Force page it is simply linked to contacts page,how the tag is working?please explain with example

3

1 Answer 1

2

So the name & value attribute of <apex:param will form a key value pair parameter appended to the URL. See the below example, which represents with param and without param. The name attribute q and value attribute account.name forms the ?q={!account.name} appended to the URL.

enter image description here

You must log in to answer this question.