It is common practice in Microsoft Dynamics 365 to use Business Rules to show and hide fields on a form. But, with that addition of multi-select option sets, you can't do this. So the next logical step is to use JavaScript. There is just one small problem, there is no setVisible() function for multi-selection option sets. Here are the controls we do have access too, as of this post:
So, how can we dynamically show / hide multi select option sets? The easiest way is to use a section. Place a new section on you form. Then you will need to use JavaScript to get the tab and section by name. Once you have that, you can dynamically show / hide the section to make the multi-selection option set show and hide. Here is an example of the JavaScript:
So, how can we dynamically show / hide multi select option sets? The easiest way is to use a section. Place a new section on you form. Then you will need to use JavaScript to get the tab and section by name. Once you have that, you can dynamically show / hide the section to make the multi-selection option set show and hide. Here is an example of the JavaScript:
function ShowHide(executionContext)
{
//Create the form context
var formContext = executionContext.getFormContext();
var contactStatus = formContext.getAttribute("Field Name").getValue();
var tabObj = formContext.ui.tabs.get("Tab Name");
var sectionObj = tabObj.sections.get("Section Name");
if (contactStatus === 1)
{
sectionObj.setVisible(true);
formContext.getAttribute("fieldName").setRequiredLevel("required");
}
}
Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
ReplyDeleteSoftware Testing Training in Chennai
software testing course in chennai
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
Selenium Training in Chennai
Software Testing Training in Chennai
Software testing training in OMR
Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.
ReplyDeleteAWS Training in Chennai
Good blog with necessary information only..!
ReplyDeleteTesting Courses in Chennai
Software Testing Institute in Bangalore
Software Testing Course
IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.
ReplyDeleteIEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.
corporate training in chennai corporate training in chennai
corporate training companies in india corporate training companies in india
corporate training companies in chennai corporate training companies in chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai
However, you can to|you probably can} place straight bets or build parlays across any of their 22+ traditional sports betting markets. Online gambling sites just like MyBookie provide bonuses for on line casino gamers because of|as a outcome of} giant monetary incentives are a fantastic method of attracting and retaining actual cash bettors. Think of it this way – if you see a $2,000 deposit match listed someplace, it sticks with 온라인카지노 you as you make a final choice. According to management estimates, SGHC is a market leader in sports betting and on-line on line casino gaming, with internet gaming income of $1.forty eight billion in FY21.
ReplyDelete