Hi All,
I Have a Custom entity,in this entity we have many field,Some fields are only show on selected Option set Value.How to do..plz help
*This post is locked for comments
Hi All,
I Have a Custom entity,in this entity we have many field,Some fields are only show on selected Option set Value.How to do..plz help
*This post is locked for comments
Take a look into below post
prudvihub.blogspot.com/.../show-and-hide-fields-in-microsoft-crm.html
Hi,
Also can try this:-
for (var i = 0; i < Xrm.Page.getAttribute("FieldName").getOptions().length; i++)
{
Xrm.Page.getControl("FieldName").removeOption(Xrm.Page.getAttribute("FieldName").getOptions()[i].value);
}
You can use javascript to show/hide fields or sections. If you have two option values then create two sections put your field as per option that you want to show in one section and hidden fields in another section. Then write javascript to show hide section as per options values.
Hope this helps.
Thanks
Business rules are easy to work upon in this scenario compared to Javascript. They prevent usage of complex Javascript codes.
http://suyati.com/understanding-business-rules-in-ms-dynamics-crm/
Hi
Create a javascript function to hide controls based on the optionset value and configure those function in then on change event of optionset field.
Example:
var objOptionInstance=Xrm.Page.getAttribute("provide fieldSchemaName here");
//option set text name
if(obj.getText()=='option set text name')
Xrm.Page.getControl('field name ').setVisible(bool);
//Option set value
if(obj.getValue()=='option set number')
Xrm.Page.getControl('field name ').setVisible(bool);
Hi DineshRaja,
Write java script to show/hide the form field when you are changing the Option set value on the same form.
Hi Dinesh Raja,
You could write a business rule to achieve the same. Please refer the links below.
heidster12.wordpress.com/.../showhide-fields-with-business-rules/
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156