The CreatorCon Call for Content is officially open! Get started here.

remove date format mm/dd/yyyy from UI Page when using <g:ui_input_field type="date"

clyon
Tera Guru

I have created a UI Page where I am using <g:ui_input_field type="date"

find_real_file.png

If there is no value it displays 'mm/dd/yyyy' on my page. How can I get rid of this?

find_real_file.png

9 REPLIES 9

Can you post your xml here instead of a screenshot. I will try this on   my instance.


Here are a few fields from the HTML in my UI page. I have a couple of different examples below b/c I wanted to see what happened.






This is the result displayed:




Just in case you need this.. all the fields in the table are defined as Dates



And the date that is being pulled to be displayed is in the format that I need it in



Thanks for the screenshots. Can you please post the html of your UI page, i will replicate this on my instance?


<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<g:ui_form>


<!-- Get values from dialog preferences passed in -->


<j:set var="jvar_loansysid" value="$" />


<j:set var="jvar_case" value="$" />


<!-- <j:set var="jvar_cert" value="$" />


<j:set var="jvar_borrower" value="$" />


<j:set var="jvar_lln" value="$" />


<j:set var="dial_comments" value="$" />


-->


<!-- Get values from Loan Info table based on search criteria passed in -->



<g:evaluate jelly="true">


var css = new GlideRecord("content_css");


css.addQuery("name", "GNW UI page default.css");


css.query()


css.next();


var cssid = ""+css.sys_id;




var loaninfo = new GlideRecord('u_loan_info');


loaninfo.addQuery('sys_id', jelly.jvar_loansysid);


loaninfo.query();


</g:evaluate>



<link href="$.cssdbx" rel="stylesheet" type="text/css">


<hidden name="case_sysid" sysid="case_sysid" value="$" visible="false" /> <hidden name="orig_name" sysid="orig_name" value="${loaninfo.u_originators_name}" visible="false" /> <hidden name="cov_type" sysid="cov_type" value="${loaninfo.u_coverage_type}" visible="false" /> <!-- <tr id="description_row" valign="top"> <td> <g:ui_input_field name="case_sysid" id="case_sysid" label="Case Sysid" value="$" readonly="true" />




<g:ui_input_field name="loan_sysid" id="loan_sysid" label="Loan Sysid" value="$" readonly="true" />



Abhinay Erra
Giga Sage

This should help. Thanks