Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To add holidays to the date field, perform the following steps:

  1. Specify the holidays in the form's listener JS file. For example, the following code snippet adds three holidays to the data component:

    var bankholidays =  
    [{
    	"dates": // The date should be in 'DD/MM/YYYY' format.
    	[{
    		date:"15/08/2019",
    		text:"Independence Day" //Mouse-over text
    	},
    	{
    		date:"06/09/2019",
    		text:"Founders' Day" //Mouse-over text
    	},
    	{
    		date:"27/10/2019",
    		text:"Diwali" //Mouse-over text
    	}],
     
    	"cssClass":'<CSS_CLASS_NAME>'
    }]; 
    
    fm.setHolidayDates(bankholidays,"<ITEM_ID_OF_DATE_FIELD>");
  2. Create the CSS class for styling the holidays in the date tool.
  • No labels