You need to sign in to do that
Don't have an account?
SARANG DESHPANDE
On change event in visualforce
I am new to visualforce and I want to display a lookup field when certain value in one of dropdowns changes on a custom object detail page.All other times the lookup field should not be visible.
How can this be achieved with visualforce?
Which tags would be required?
And would need to overwrite current detail page or we can edit the current detail page?
How can this be achieved with visualforce?
Which tags would be required?
And would need to overwrite current detail page or we can edit the current detail page?
To achieve the functionality you're looking for, you'd use the apex:actionSupport tag (as one possiblity) and the rerender tag to rerender the parent element of your lookup field. I've providing a really simple example below of what your VF markup might look like.
If you do go the route of overriding the detail with with Visualforce, one thing you'll want to consider is using a field set for easily configuring the fields that are displayed on the page.
Hope that helps.