Zoho Deluge: Loop through 30 Minute Slots
- Category: Zoho
- Hits: 14520
This code snippet took me a while to do and the documentation is flaky so I thought I'd make a note here just in case I need to refer to it again.
Why?
I want to modify a picklist and fill it with options from a certain time of the day to the closing time of the day (working hours).
How?
The plan is to iterate through a 24-hour clock, enable adding to the picklist when the starting hour is found and stop adding when the closing hour is found. The picklist field is called "Time_Field".
Zoho Deluge - MD5 function
- Category: Zoho
- Hits: 13685
So this is NOT an article on how to create a MD5 function for an ETag in Zoho Deluge as I expected it would be. At time of print, the Zoho documentation (and Google search results) make no mention of using MD5 in an encryption task.
Why?
I'm trying to create an ETag for a synchronization process between Zoho Creator and Zoho CRM. Combining all the fields to compare into a single field can't be done via the documented methods (base64, urlencode or AES) as this exceeds 255 characters (it could be a multiline but this would defeat the objective of an Etag).
How?
Zoho Deluge - Hide Reset Button on Form
- Category: Zoho
- Hits: 9775
So another quick note as I couldn't find a solution on the forums. This is to hide the reset button on a non-stateless form (state form?). I have posted this on the Zoho forums as well but here goes:
Why?
Because I can. And because as someone said, a "reset" button is so 1990. I have a confirmation page and don't want the button to show so...
How?
Zoho Inventory Template Issue: First Page is Blank
- Category: Zoho
- Hits: 11085
So I thought I'd write an article to help me resolve the particular issue where the organization details and the header of the product line items table would display on the first page, the product line items would then print on the second page, with the terms and conditions or small print notes on a third page.
How?
Zoho Deluge - Get Full Day Name
- Category: Zoho
- Hits: 16338
This is a very quick note with the code to retrieve the full day name from a date (eg. "Monday").
Why?
If I use the toString() function to get the day, it only returns the first 3 letters of the day (eg. "Mon").
My_Date = today; Day_Name = My_Date.toString("E"); // returns "Mon"How?
Zoho Deluge - Get English Ordinal
- Category: Zoho
- Hits: 14054
This is a very quick note with the code to determine the English ordinal of a date (eg. "st" of "1st"). So in a date, instead of "Tuesday, 6 November 2018", I could want "Tuesday 6th of November 2018".
Why?
Well there's a long a way to do it (but reliable). But being limited to the lines of code you can run (ref. "Maximum number of executable statements", anything that reduces the number of lines used would be an improvement. This is how I was doing it previously.
// get the date (eg. 1, 2, 3, ... 29, 30, 31) This_Day_Date = My_Date_Field.toString("d"); // determine English ordinal English_Ordinal = "th "; if(This_Day_Date == "1" || This_Day_Date == "21" || This_Day_Date == "31") { English_Ordinal = "st "; } if(This_Day_Date == "2" || This_Day_Date == "22") { English_Ordinal = "nd "; } if(This_Day_Date == "3" || This_Day_Date == "23") { English_Ordinal = "rd "; } // display info My_Date.toString("d") + English_Ordinal;
How?
Zoho Deluge - Get User Timezone, Country and Location
- Category: Zoho
- Hits: 15549
A quick article just as a note to get the users country information from a third-party API based on the given IP address.
How?
Well this is just a list of free 3rd-party APIs and the below code is dependent on these being online and working...
Page 25 of 25
Credit where Credit is Due:
Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.
Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.
Thank you for visiting and, as always, we hope this website was of some use to you!
Kind Regards,
Joel Lipman
www.joellipman.com
Latest Articles
Accreditation



Donate & Support
If you like my content, and would like to support this sharing site, feel free to donate using a method below:

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF
Paypal:

Bitcoin:

Ethereum:
