remove date format mm/dd/yyyy from UI Page when using <g:ui_input_field type="date"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 12:26 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 12:30 PM
Hi Christina,
Have you looked at using the built in macro for dates?
<g:ui_date />
Attribute information can be found in the macro. Substitute your instance name for YOURINSTANCE in the URL below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 07:16 PM
Below is the ui_date when there is a value and when there isn't. It does get rid of the 'mm/dd/yyyy' but b/c my UI page is all read only it brings up formatting issues for the page.
Is there anything else I can do to display a date value in the correct format (without the 'mm/dd/yyyy' if there is no value)?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2016 08:20 PM
Hi christina,
Use onfocus and onfocusout to change the input types.Try this
<g:ui_input_field label="Date" name="date" value="{loaninfo.u_cert_date}" type="text" onfocus="(this.type='date')" onfocusout="(this.type='text')" readonly="true"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2016 10:44 AM
Your solution did remove the 'mm/dd/yyyy' that is present when <g:ui_input_field type="date" . But with that it also changed my date format when there is a value back to yyyy-mm-dd, instead of mm/dd/yyyy.
Might there be any other solution so that when there is a value it is in the correct date format and when there is no value, it's blank?
An if statement to check the value??
Thanks!