service catalog show field msg not scrolling on error if catalog is too long

frank121
Kilo Sage

Hi all, I am using use the g_form.showFieldMsg error message on the service catalog for a request I have but the problem I am having is that whenever I have a request form that is too long the error message will not scroll to the variable that is erroring out if its at the bottom of the page. Because of this whenever i use g_form.showFieldMsg on a onSubmit client script it can get confusing when hitting submit because the form wont do anything but in reality the variable that is erroring out is at the bottom. For now I am using a g_form.addErrorMessage so that the message gets put at the top of the screen but would love for showFieldMsg to work properly.

 

I notice that there is a 5th parameter for the showFieldMsg that Im setting to true so my code would look like

g_form.showFieldMsg('Business_Unit', 'Datahub Already Exists', 'error', true);

but this does not resolve anything as well. No scrolling happens when the error takes place. Is there anything that can do this for me on the service catalog?

2 REPLIES 2

harshav
Tera Guru

Hi Frank,

If you are in London version, then there is a drawback and it is throwing the variable error.

To overcome this we have couple of things 

g_form.showFieldMsg('Business_Unit', 'Datahub Already Exists', 'error', true);

Change the above type fro error to info it will work

g_form.showFieldMsg('Business_Unit', 'Datahub Already Exists', 'info', true);

Or else you can use alert instead.

Thanks

Thank you, im going to try that. What if im on Madrid?