How to get only time field on record producer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2020 06:24 AM
Dear All,
How can we do it from UI macro?
- Labels:
-
Script Debugger
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2020 06:37 AM
assuming you are talking about timer field , if yes ootb its only available for form.
if you want to use it as variable then you have to write html code in ui macro and then use ui macro type variable over your record producer.
timer type html example
https://www.sitepoint.com/build-javascript-countdown-timer-no-dependencies/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2020 06:39 AM
Hi,
in UI macro you can use
<g:ui_date_time id= "${jvar_name}" value= "${jvar_name}" />
What about record producer?
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2020 06:46 AM
Hi,
You can create field of type Duration and create onload client script to hide day part using DOM manipulation as below:
getDocument().getElementsByClassName(<Day part field>)[0].style.display='none';
You can get Days portion of Duration field by inspecting element shown as below:
UI script: Set as global
Add script as:
function getDocument()
{
return document;
}
Thanks.