- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 08:29 AM
We have a Service Catalog Item with a single line field variable which has character limit to 40 characters.
I would like to make it so the user can't 'Order Now' until 40 characters are in that field.
Thank you,
Sarah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 12:22 PM
Ty this:
function onSubmit() {
var text = g_form.getValue("u_epic_device_haiku_canto");
var length=text.length;
if(length <40)
{
alert("Please enter full field");
return false;
}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 08:40 AM
var textBox = g_form.getValue("field_name");
var textLength = textBox.value.length;
if(textLength <40)
{
alert("Please enter full field");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 08:53 AM
Thanks Deep! where should I put the above script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 08:57 AM
You can write it in onChange or OnSubmit Client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 11:52 AM
