- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 03:04 PM
Hi,
I have a custom table with two columns. Details & Summary.
I want to set first 255 Characters of Details column as default value to the Summary column.
I was wondering if I could do that from the 'Default value' property of Summary column.
Thank you,
Yogesh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 03:13 PM
you can try with subString() function JavaScript String substring() Method, example:
if (newValue.toString().length >= 255) {
g_form.setValue('summary', newValue.substring(0,254));
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 03:13 PM
you can try with subString() function JavaScript String substring() Method, example:
if (newValue.toString().length >= 255) {
g_form.setValue('summary', newValue.substring(0,254));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 03:16 PM
Try dynamic default feature
Or Use Onload Client script
var description= g_form.getValue("source field name");
g_form.setValue('summary', description.substring(0,254));