So I have a form with 3 sections. I want a functionality where Section 1 gets filled than section 2 shows up and so on.
I know the basic code of JavaScript but I don't know where to use it or how to invoke it. I have made a web resource with SHOW and HIDE functions, now how do I invoke them.
I am currently working the idea of using JAVA SCRIPT to hide the sections and show the latter sections when the former gets filled up. Here is my code.
function Hide()
{ Xrm.Page.ui.tabs.get("yourtabname").sections.get("your section name").setVisible(false); }
function Show()
{ Xrm.Page.ui.tabs.get("yourtabname").sections.get("your section name").setVisible(true); }
Now I am aware that Show()
will get attached to the last field of section 1 of the form, but what about the Hide()
function? where will I invoke it?