Quantcast
Channel: Zoho Creator Knowledge base » HTML view
Viewing all articles
Browse latest Browse all 3

How can I set the parameter of an HTML view with current date, if parameter is empty?

$
0
0

 
If no parameters are passed to an HTML view, the parameter will be set as “null“. Add the following code to your HTML view, to set the parameter to current date, if the parameter is equal to “null”.


if (input.parameter == null)
{
input.parameter = zoho.currentdate.toString();
// As parameter is a string value, the date is converted to string
}


Viewing all articles
Browse latest Browse all 3

Trending Articles