How to not allow any spaces after the text in a variable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 06:30 AM
How to not allow any spaces after the text in a variable
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 06:34 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 06:35 AM - edited ‎05-28-2024 06:35 AM
Hi,
You can write an onchange client script and trim the leading and trailing spaces, if any.
Here is an eg.
var str = g_form.getValue('<variable_name>');
var wsr = str.trim();
g_form.setValue('variable_name',wsr );
-Anurag
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 11:24 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2024 01:15 AM
It will accept the space but remove it when you save the form.
-Anurag