- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 01:20 AM
hi,
i have 1 field which is a single line text, now i want to convert the value of that field to lower-case so i used .toLowerCase()
and toLowerCase.toString() methods but am getting values as undefined .
how to resolve this?
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 01:22 AM
Hi,
It should be used as .toString().toLowerCase();
For me the below script works fine, but my variable already has a string, you might need to convert it first using toString before converting to lower case
var x= 'HAHA';
alert(x);
x=x.toLowerCase();
alert(x);
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 01:22 AM
Hi,
It should be used as .toString().toLowerCase();
For me the below script works fine, but my variable already has a string, you might need to convert it first using toString before converting to lower case
var x= 'HAHA';
alert(x);
x=x.toLowerCase();
alert(x);
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 01:31 AM
the field which i want to convert is a single line text field so .toString is required?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 01:29 AM
It should be fieldname.toLowerCase().toString()