Announcements
Hello,
Have two fields named isProduct(Yes/No) and Product Detail, both of them are located in Contact Form.
I create two Contact Views: Active Contact with Product and Active Contact without Product, filter is isProduct=Yes or isProduct=No respectively.
Opening the record in Active Contact without Product, I hope the Product Detail Field is hidden.
Are there any ways to achieve it? Using JavaScript or have to implement Plugin? Could you give me some sample code? Thanks.
Hello ALL365,
= > Yes we can do so.
= > With the help of business rule we can hide particular fields based on view's filter.
= > Refer this blog to hide/show fields based on some condition.
Hi Partner,
You must add the "Product Detail" column on the forms firstly, then you can use business rule or js to hide/show it automatically.
--Creating business rule
Make the business rule scope is Entity, it can work on all forms,
Hi Leah,
Thank you so much for your detail explanation. Actually, is it possible, when I open the record listed in the "Active Contact without Product" View, the "Product Detail" column is hided automatically or doesn't install in the form? If yes, is this means different view open different record form?
Thanks again.
Hi Partner,
Hiding 'Product Detail' field on the View? or on the Form?
2.You mentioned that you have created two contact views, so there is no need to hide the fields in the view, you just don't add the 'Product details' field to the 'Active contacts with products' view.
1)Active Contact with Product
2)Active Contact without Product
2.If you don't want to see 'Product details' on the form when the 'isProduct' field equals 'No', you can use buisness rule to hide it easily.
--Creating one business rule:
--Test:
If you want to hide fields through javascript, you can refer to the following link:
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156