How to default a text box to display current year
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 09:27 AM
How to default a text box to display current year.
Thanks,
Anji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 10:13 AM
I like this, I was thinking, SNOW could have provided a dynamic expression for default value. Glad to see this.
One issue is, it's displaying the value as "2,016". How to remove comma from this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 10:28 AM
What type of field is it? By the looks of it, I'm thinking it is an Integer? They are automatically formatted. You should probably change it to a String.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2016 01:38 AM
Thank you Jim.
It is working.
Thanks,
Y Anji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2016 12:41 PM
That's good. Please remember to mark the appropriate response as being "Correct". Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 10:30 AM
Ram,
Use .replace(/,/g,'');
javascript:(new Date().getFullYear()).toString().substr(0,4).replace(/,/g,'');