I need to have time entered in 1 minute increments. I stumbled across a post about this issue and the poster supplied this code. However, I can’t get it to work as a field render or inline. Has anyone gotten this to work. Is it something that I am doing wrong? Any help would be appreciated. ______________________________________________________________________________ var field = arguments[0], value = arguments[1]; console.log(value); if(field.mode == ‘edit’) { skuid.ui.fieldRenderers.DATETIME.edit(field, value); var html = ‘000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859’; jQuery(field.element.find(“.nx-dt-timewrapper”).find(“select”)[1]).html(html); var jsDate = skuid.time.parseSFDateTime(value); var selectedOpt = jQuery(jQuery(field.element.find(“.nx-dt-timewrapper”).find(“select”))[1]).find(“option”).filter(function(index, item) {return jQuery(item).attr(“value”) == jsDate.getMinutes()}); selectedOpt.attr(“selected”, “”); } else { skuid.ui.fieldRenderers.DATETIME.read(field, value); }
Question
Setting Date Time Sensitivity from 5 minutes to 1 minute with a custom field renderer
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
