RE: Hide few fields based on some condition
Hi Ravi,
You can use JavaScript to hide one field.
Here are steps.
1.write custom JavaScript code.
![5415.png](/api/data/v9.1/msdyn_richtextfiles%28CDA97607-3966-4815-840A-167801762F78%29/msdyn_imageblob/$value?size=full)
2. Add your JavaScript code in a Script web resource.
![3678.png](/api/data/v9.1/msdyn_richtextfiles%28CF1BECAC-7876-4F42-8144-107030A830CD%29/msdyn_imageblob/$value?size=full)
3. Associate Script web resource to a form.
(1) In the Main form of Opportunity, click Form Properties.
![1121.png](/api/data/v9.1/msdyn_richtextfiles%2845E649EE-B4B0-418C-9A42-32A9457E52A7%29/msdyn_imageblob/$value?size=full)
(2) Click Add button to lookup record dialog box, search and select file you created.
![0572.png](/api/data/v9.1/msdyn_richtextfiles%28038DE527-2E8F-445C-861D-BCAFAD9CF59E%29/msdyn_imageblob/$value?size=full)
(3) To the Handler Properties dialog box.
![3652.png](/api/data/v9.1/msdyn_richtextfiles%28BCA7BFBA-B5C3-48AF-8318-7630CB317F87%29/msdyn_imageblob/$value?size=full)
(4) Click Add button.
![5187.png](/api/data/v9.1/msdyn_richtextfiles%286A2BCDB7-9499-40F5-8068-051616E51806%29/msdyn_imageblob/$value?size=full)
4. Test your JavaScript code.
![3362.png](/api/data/v9.1/msdyn_richtextfiles%281C5FCCD8-6D90-40A2-B853-D660D7A2B56B%29/msdyn_imageblob/$value?size=full)
When the type field is filled with data, the End customer field will not be shown in the form.
![6765.png](/api/data/v9.1/msdyn_richtextfiles%28EEBA9B99-B233-44B9-B5D4-1061B1E3DBFF%29/msdyn_imageblob/$value?size=full)
Regards,
Clofly