-1

I have a requirement like, The form has flag values, 'Private' and 'Public'. When private is selected, some of the fields(text, option set, look ups) has to be marked with '**' for display alone. Someone please help me with the code, how to change the display for the values in fields(especially optionset and lookup). The plugin is registered for retrieve and retrieve multiple on post operation.

Thanks in advance!!

4

1 回答 1

1

您可以使用 XRM javascript 对象重命名字段标签。

这里

因此,要更改标签的值,只需使用:

Xrm.Page.getControl('new_fieldname').setLabel('New Label *');

您可以通过使用挂钩到 onchange 事件

Xrm.Page.getAttribute('new_optionset').addOnChange(function() {
    //method logic goes here
});
于 2012-10-03T09:04:45.623 回答