Timeline for How can I hide & show Lookup in Visualforce Page?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 31, 2014 at 15:37 | comment | added | Keith C | @sus Yes you can do it with re-rendering. But any small typo breaks JavaScript and such typos are easily fixed. Have you checked your browser's JavaScript console for JavaScript errors? | |
Oct 31, 2014 at 15:34 | comment | added | LazyBones |
I am not getting any error but the fields are not getting hidden. so i have no error on my vs page. I was doing some research and found out reRender helps to achieve this, however i exactly did not understand how this works. I saw some code but I am not very clear <apex:inputField id="reqType" styleClass="reqLineType" html-class="requist" value="{!newReq.Requisition_Type__c}"/> <apex:actionSupport event = "onChange" reRender ="anyName" So over here, where should i place action support ? On the input field which I want to hide or on the input field where the condition takes place.
|
|
Oct 31, 2014 at 9:27 | comment | added | Keith C | @sus I've just cut and pasted the code I posted back into an org and it hides and shows the lookup field depending on what the picklist field is set to. (The only problem I can imagine is that you do not have a Contact.Level__c picklist in your org.) When something doesn't work, be detailed about what the problem is, and if there is a compile error or exception quote the message and the line number. | |
Oct 30, 2014 at 21:33 | history | answered | Keith C | CC BY-SA 3.0 |