You need to sign in to do that
Don't have an account?
Bhargav krishna 1
Hide and Display the Custom Fields
Hi everyone,
Can we Hide and Display the Custom fields in the Custom Object when a particular value in the picklist is selected.
Thanks in advance.
Regards,
Bhargav.
Can we Hide and Display the Custom fields in the Custom Object when a particular value in the picklist is selected.
Thanks in advance.
Regards,
Bhargav.
CUSTOM:
if you are in visualforce page you can do it by adding the render attribute on the custom fields. Also you can achieve the same for the Js & Jquery.
STANDARD;
For standard page you can write a trigger to change the layout of the page by changing the record type of the record. In this page layout (new PageLayout) you can hide the fieds.
Let me know if you need any help.
Thanks and Regards,
Sai Krishna Tavva.
Other wise you could think about creating new record type and that record type has fields that you want to have.
Please check the below sample code for your requirement.
Visualforce Page:
Controller:
Please copy and paste the above code and check the output.
Hope this helps you!
Best Regards,
Jyothsna
can you give any example for custom it will be helpful for me.
Thanks in advance,
Regards,
Bhargav.
Here is display non example
http://www.w3schools.com/jsref/prop_style_display.asp
Also jquery demo of show/hide
http://api.jquery.com/show/
here is the below code of sample markup to understand this implemention.
If you need any help post your code here , i will modify and update your code.
Let me know if you face any issues/queries.
Thanks and Regards,
Sai Krishna Tavva.
Please mark the answer as best answer as it may help to others.
Thanks and Regards,
Sai Krishna Tavva.