New 'Field Message scrolling' - possible to turn that off?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2010 08:55 AM
With the Spring 2010 release, the wiki mentions that field messages - using g_form.showFieldMsg(...) - now cause the form to scroll down to the displayed message, so that it won't be missed.
I was wondering if that's possible to control? I'd like to disable the auto-scrolling since I have a message pop up halfway down the form based on category classification, but it doesn't need to be viewed until the caller is filling out the Description.
Thanks for any feedback!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2010 09:56 AM
Beginning with Spring 2010 Stable 2, you have control over whether to do scrolling or not for the showFieldMsg function. When you call showFieldMsg, you can pass an optional parameter specifying whether scrolling should occur (true/false). So the parameters are:
showFieldMsg(input, message, type, scrollForm)
You could change that last parameter based on whether your Description field has been completed.
If you would like to disable field message scrolling across the board, you can set a property "glide.ui.scroll_to_message_field" to false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2010 10:58 AM
Hi Eric,
Thank you very much for the reply, I appreciate that!
Oddly enough, I've tried both the System Definitions Property you provided (true/false, set value to false of course) as well as adding 'false' to the end of my showFieldMsg call and neither seems to make a difference. I verified that we were upgraded to Spring 2010 (specifically glide-spring2010-05-27-2010_06-04-2010_1310). Any idea what I may be missing?
Oh, I also logged out and closed the browser and logged back in using IE to make sure it wasn't reliant on that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2010 11:02 AM
Well, I found the documentation for Spring 2010 Stable 2 and it looks like that was released on August 6 2010. It doesn't look like our instance has been updated to that yet, so your suggestion will likely work once we do!
Thanks again for your help Eric.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2010 11:15 AM
You're welcome. You can always try it out on the Service-now demo instance (https://demo.service-now.com) to experiment and prepare your scripts for your next upgrade. Just keep in mind it gets reset back to out-of-box each night.
I hear better documentation for the g_form object's API is coming soon and that will be very useful.