In order to have actions performed in form scripts JS is used. The results of this style are instantaneous; it is the most preferred method and the most used. It is also highly adaptable to interact with various customer scenarios. Form scripts are used most for the following tasks:
To configure commands for the controls those are added to the ribbon command. There are three items that the ribbon command delineates:
It is possible to delineate at what point ribbon elements are enabled. The <EnableRule> (RibbonDiffXml) element is used as follows:
It is possible to delineate at what point ribbon elements are displayed.
Also it is possible to delineate the actions performed by a ribbon control in a <CommandDefinition> (RibbonDiffXml) element together with rules that control whether the control is enabled or visible in the ribbon.
A ribbon control can perform two types of actions and may include multiple actions:
Step 1: Go to Form >> Click on Form Properties.
Step 2: Click on “+Add “. Lookup window will pop up.
Step 3: If there are any JS Web Resources Search it and then click on Add to add it to the form. If there are no JS Web Resources click on New to add a new web resource.
Step 4: In order to create a New JS Web Resource follow the steps below:
Step 5: Save the changes and publish the customizations.
Step 6: It is now possible to add this web resource to the form and view it on the main form.